]> git.street.me.uk Git - andy/viking.git/blobdiff - Makefile.am
Include configuration examples in distribution
[andy/viking.git] / Makefile.am
index f5e2ec262a1c0ffb23284b0dae97a3eb8b1a3c77..858c4367cdb040668b335daa38892004602cce22 100644 (file)
@@ -7,17 +7,24 @@ INTLTOOL = \
 
 full:
        ./autogen.sh
-       if [ -x config.status ] ; then ./config.status --recheck ; else ./configure ; fi
        make
 
 bin_SCRIPTS = viking-remote
 
 EXTRA_DIST = \
+                ChangeLog.0 \
             viking-remote \
             viking.spec \
             $(INTLTOOL)
 
-dist-hook: viking.spec
+.PHONY: generate-changelog
+generate-changelog:
+       if test -d $(top_srcdir)/.git; then \
+          cd $(top_srcdir) ; sh $(top_srcdir)/maintainer/git2changelog.sh > $(distdir)/c-l; \
+          mv $(distdir)/c-l $(distdir)/ChangeLog; \
+        fi
+
+dist-hook: viking.spec generate-changelog
        cp $(top_builddir)/viking.spec $(distdir)
 
 DISTCLEANFILES = \