diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1,5 +1,6 @@ #CFLAGS=-O2 -Wall -g NAME=mbw +TARFILE=${NAME}.tar.gz mbw: mbw.c @@ -7,6 +8,8 @@ clean: rm -f mbw rm -f ${NAME}.tar.gz -rpm: clean - tar cCzf .. ${NAME}.tar.gz ${NAME} +${TARFILE}: clean + tar cCzf .. ${NAME}.tar.gz --exclude-vcs ${NAME} || true + +rpm: ${TARFILE} rpmbuild -ta ${NAME}.tar.gz |