why releases for such a small project? useless and overhead!

This commit is contained in:
Aaron Marcher 2016-12-29 23:36:05 +01:00
parent b68925dbef
commit 8fa6229759
No known key found for this signature in database
GPG Key ID: 74B048E5C2474F9A
4 changed files with 9 additions and 11 deletions

View File

@ -31,16 +31,16 @@ ${NAME}: ${OBJ}
clean: clean:
@echo cleaning @echo cleaning
@rm -f ${NAME} ${OBJ} ${NAME}-${VERSION}.tar.gz @rm -f ${NAME} ${OBJ} ${NAME}.tar.gz
dist: clean dist: clean
@echo creating dist tarball @echo creating dist tarball
@mkdir -p ${NAME}-${VERSION} @mkdir -p ${NAME}
@cp -R Makefile config.mk LICENSE \ @cp -R Makefile config.mk LICENSE \
${SRC} ${NAME}-${VERSION} ${SRC} ${NAME}
@tar -cf ${NAME}-${VERSION}.tar ${NAME}-${VERSION} @tar -cf ${NAME}.tar ${NAME}
@gzip ${NAME}-${VERSION}.tar @gzip ${NAME}.tar
@rm -rf ${NAME}-${VERSION} @rm -rf ${NAME}
install: all install: all
@echo installing executable file to ${DESTDIR}${PREFIX}/bin @echo installing executable file to ${DESTDIR}${PREFIX}/bin
@ -49,7 +49,7 @@ install: all
@chmod 755 ${DESTDIR}${PREFIX}/bin/${NAME} @chmod 755 ${DESTDIR}${PREFIX}/bin/${NAME}
@echo installing manual page to ${DESTDIR}${MANPREFIX}/man1 @echo installing manual page to ${DESTDIR}${MANPREFIX}/man1
@mkdir -p ${DESTDIR}${MANPREFIX}/man1 @mkdir -p ${DESTDIR}${MANPREFIX}/man1
@sed "s/VERSION/${VERSION}/g" < ${NAME}.1 > ${DESTDIR}${MANPREFIX}/man1/${NAME}.1 @cp -f ${NAME}.1 ${DESTDIR}${MANPREFIX}/man1
@chmod 644 ${DESTDIR}${MANPREFIX}/man1/${NAME}.1 @chmod 644 ${DESTDIR}${MANPREFIX}/man1/${NAME}.1
uninstall: uninstall:

View File

@ -1,7 +1,5 @@
# See LICENSE file for copyright and license details. # See LICENSE file for copyright and license details.
VERSION = 3.0
PREFIX = /usr/local PREFIX = /usr/local
MANPREFIX = ${PREFIX}/share/man MANPREFIX = ${PREFIX}/share/man

View File

@ -1,4 +1,4 @@
.TH SLSTATUS 1 slstatus\-VERSION .TH SLSTATUS 1 slstatus
.SH NAME .SH NAME
slstatus \- suckless status slstatus \- suckless status
.SH SYNOPSIS .SH SYNOPSIS

View File

@ -780,7 +780,7 @@ main(int argc, char *argv[])
oflag = 1; oflag = 1;
break; break;
case 'v': case 'v':
printf("slstatus %s (C) 2016 slstatus engineers\n", VERSION); printf("slstatus (C) 2016 slstatus engineers\n");
return 0; return 0;
case 'h': case 'h':
usage(0); usage(0);