Skip to content

Commit

Permalink
Make RPM building more robust in Makefile, and omit .git from the arc…
Browse files Browse the repository at this point in the history
…hive.
  • Loading branch information
raas committed Oct 7, 2013
1 parent e46cfd9 commit 5e449a6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
#CFLAGS=-O2 -Wall -g
NAME=mbw
TARFILE=${NAME}.tar.gz

mbw: mbw.c

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

0 comments on commit 5e449a6

Please sign in to comment.