gitg/Makefile.am

36 lines
1.1 KiB
Makefile
Raw Normal View History

2008-06-23 22:04:20 +00:00
## Process this file with automake to produce Makefile.in
SUBDIRS = gitg data po
DISTCLEANFILES = \
intltool-extract \
intltool-merge \
intltool-update
EXTRA_DIST = \
autogen.sh \
intltool-extract.in \
intltool-merge.in \
intltool-update.in
bundle:
rm -rf "$(bundledir)"; mkdir "$(bundledir)"; \
rm -rf gitg-$(PACKAGE_VERSION).zip; \
top_bundledir=`cd "$(bundledir)" && pwd`; \
for i in $(SUBDIRS); do (cd $$i && $(MAKE) top_bundledir="$$top_bundledir" $(AM_MAKEFLAGS) bundle); done; \
zip -r gitg-$(PACKAGE_VERSION).zip $(bundledir) >/dev/null;
dist-hook: generate-changelog
generate-changelog:
if test -d $(top_srcdir)/.git; then \
2009-03-01 08:59:23 +00:00
sep=`nawk 'BEGIN{$$79=OFS="-";print}'`; \
git --git-dir=$(top_srcdir)/.git log --date=short --stat --decorate \
| sed -e "s/^\(commit [abcdef0-9]\{40\}\) (.*refs\/tags\/\(v\([0-9.]\+\)\).*)/$$sep\nVersion \3\n$$sep\n\n\1/g" -e 's/^\(commit [abcdef0-9]\{40\}\).*/\1/g' | ruby -e 'puts STDIN.read.gsub(/commit\s*(.*)\nAuthor:\s*(.*)\nDate:\s*(.*)\n/, "\\3 \\2\ncommit \\1\n")' > $(distdir)/c-l; \
mv $(distdir)/c-l $(distdir)/ChangeLog; \
fi
.PHONY: bundle generate-changelog
2009-09-06 19:33:23 +00:00
-include $(top_srcdir)/git.mk