summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index be6852c..20e2773 100644
--- a/Makefile
+++ b/Makefile
@@ -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