Makefile fixed for git

This commit is contained in:
Silvan Calarco 2011-09-09 23:01:48 +02:00
parent 7f9c89d528
commit c15983073f

View File

@ -1,5 +1,5 @@
# makedist Makefile for installation and packaging # makedist Makefile for installation and packaging
# Copyright (c) 2003-2007 by Silvan Calarco <silvan.calarco@mambasoft.it> # Copyright (c) 2003-2011 by Silvan Calarco <silvan.calarco@mambasoft.it>
# #
# This program is distributed in the hope that it will be useful, # This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
@ -17,9 +17,12 @@ datadir := $(prefix)/share
sysconfdir := /etc sysconfdir := /etc
dist: clean dist: clean
@tar cf - --exclude=$(dist_archive) --exclude=global/defs.inc \ @git log > ChangeLog.git
--exclude global/distromatic.conf -C .. $(distdir) | \ @mkdir /tmp/$(distdir)
bzip2 -9 -c > $(dist_archive) cp -a * /tmp/$(distdir)/
@rm -f $(dist_archive)
tar cf - -C /tmp $(distdir) | bzip2 -9 -c > $(dist_archive)
@rm -rf /tmp/$(distdir)
@echo "file \`$(dist_archive)' created" @echo "file \`$(dist_archive)' created"
dist-rpm: dist dist-rpm: dist