summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAndras HORVATH <andras.horvath@gmail.com>2013-10-07 23:13:54 +0200
committerAndras HORVATH <andras.horvath@gmail.com>2013-10-07 23:13:54 +0200
commit5e449a6e040e1e250fabf347b362b89fe4d1a4ad (patch)
tree71381f1bab8055f6ebd3fddd7b1a434ba6b78de6 /Makefile
parente46cfd9faa2f9c86836de5ccf8e924266da7c526 (diff)
Make RPM building more robust in Makefile, and omit .git from the archive.
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