Makefile fixed for git
This commit is contained in:
parent
7f9c89d528
commit
c15983073f
11
Makefile
11
Makefile
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user