diff options
author | Andras HORVATH <andras.horvath@gmail.com> | 2013-10-07 23:13:54 +0200 |
---|---|---|
committer | Andras HORVATH <andras.horvath@gmail.com> | 2013-10-07 23:13:54 +0200 |
commit | 5e449a6e040e1e250fabf347b362b89fe4d1a4ad (patch) | |
tree | 71381f1bab8055f6ebd3fddd7b1a434ba6b78de6 | |
parent | e46cfd9faa2f9c86836de5ccf8e924266da7c526 (diff) |
Make RPM building more robust in Makefile, and omit .git from the archive.
-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 |