Simpler way to construct the source distribution.

This commit is contained in:
Juan Jose Garcia Ripoll 2012-07-24 18:51:53 +02:00
parent 52ca46e054
commit b3fbf51174

View file

@ -147,11 +147,8 @@ rpmbuild=$(shell if [ -z `which rpmbuild` ]; then echo "rpm"; else echo "rpmbuil
# grep -v '^#% ' > $(rpmdir)/SPECS/ecl.spec;
# rpm -ba $(rpmdir)/SPECS/ecl.spec
$(TAR_DIR):
git clone .git $(TAR_DIR)
$(TAR_DIR).tgz: $(TAR_DIR)
cd $(TAR_DIR) && git pull && git reset --hard
tar -cz --exclude .git -f $(TAR_DIR).tgz $(TAR_DIR)
$(TAR_DIR).tgz:
git archive --format=tar.gz --prefix=$(TAR_DIR)/ HEAD > $@
binary-dist: all
su -c "rm -rf tmp"