X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=Makefile.am;h=7f1605cfa2f7323565c683f989c79369fc9a45ba;hb=0602c605af04ea73af700b223ec4ac1dfd5a36f1;hp=e316d8a8556fb72b637859c161a7ecf3f6bc16b7;hpb=cfccd4873a44da5b041368d5fca4f05180dcf041;p=fontconfig.git diff --git a/Makefile.am b/Makefile.am index e316d8a..7f1605c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -32,6 +32,21 @@ EXTRA_DIST = \ fontconfig.spec.in \ fontconfig.spec \ fontconfig-zip.in +DISTCLEANFILES = config.cache ChangeLog +MAINTAINERCLEANFILES = \ + $(srcdir)/aclocal.m4 \ + $(srcdir)/autoscan.log \ + $(srcdir)/compile \ + $(srcdir)/config.guess \ + $(srcdir)/config.h.in \ + $(srcdir)/config.sub \ + $(srcdir)/configure.scan \ + $(srcdir)/depcomp \ + $(srcdir)/install-sh \ + $(srcdir)/ltmain.sh \ + $(srcdir)/missing \ + $(srcdir)/mkinstalldirs \ + `find "$(srcdir)" -type f -name Makefile.in -print` pkgconfigdir=$(libdir)/pkgconfig pkgconfig_DATA = fontconfig.pc @@ -45,8 +60,29 @@ else RUN_FC_CACHE_TEST=test -z "$(DESTDIR)" endif +# Creating ChangeLog from git log: + +MAINTAINERCLEANFILES += ChangeLog + +EXTRA_DIST += ChangeLog + +ChangeLog: + if test -d "$(srcdir)/.git"; then \ + (GIT_DIR=$(top_srcdir)/.git ./missing --run git-log --stat) | fmt --split-only > $@.tmp \ + && mv -f $@.tmp $@ \ + || ($(RM) $@.tmp; \ + echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \ + (test -f $@ || echo git-log is required to generate this file >> $@)); \ + else \ + test -f $@ || \ + (echo A git checkout and git-log is required to generate ChangeLog >&2 && \ + echo A git checkout and git-log is required to generate this file >> $@); \ + fi + +.PHONY: ChangeLog + install-data-local: - $(mkinstalldirs) $(DESTDIR)$(configdir) + $(mkinstalldirs) $(DESTDIR)$(configdir) $(DESTDIR)$(fc_cachedir) if [ -f $(DESTDIR)$(configdir)/fonts.conf ]; then \ echo "backing up existing $(DESTDIR)$(configdir)/fonts.conf"; \ mv $(DESTDIR)$(configdir)/fonts.conf $(DESTDIR)$(configdir)/fonts.conf.bak; \