Add Makefile to make clean tarball

This commit is contained in:
Nick Bebout 2011-10-18 20:09:36 -05:00
parent f79a6d54a0
commit 813ca6cc8c
1 changed files with 14 additions and 0 deletions

14
Makefile Normal file
View File

@ -0,0 +1,14 @@
MAKEFILE_COMMON = $(HOME)/.fedora/common.mk
-include $(MAKEFILE_COMMON)
# can not use final tarball name here as it will conflict with rules
# within Makefile.common
TARBALL_CLEAN = ${NAME}-${VERSION}-norar.tar.xz.tmp
TARBALL = ${NAME}-${VERSION}.tar.gz
clean-sources: ${TARBALL_CLEAN}
${TARBALL_CLEAN}: ${TARBALL}
rm -f $@.tmp
zcat $< | tar --delete -f - '*/libclamunrar/*' | xz -c > $@.tmp
mv $@.tmp $@