X-Git-Url: https://git.street.me.uk/andy/viking.git/blobdiff_plain/d700ee388c42329c843e98bcdbc6ea4c4857458f..0082c2f6ea7ca403278b360621997c4af42ff064:/Makefile.am diff --git a/Makefile.am b/Makefile.am index e4d2cc7e..4a5a2708 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,12 +1,46 @@ -SUBDIRS = src test doc +# Optionally build documentation bits +if VIKING_DOC + DO_DOCS = "doc" +endif +SUBDIRS = src test data po win32 help $(DO_DOCS) -bin_SCRIPTS = viking-remote +INTLTOOL = \ + intltool-extract.in \ + intltool-merge.in \ + intltool-update.in + +full: + ./autogen.sh + make EXTRA_DIST = \ - viking-remote \ - viking.spec + gnome-doc-utils.make \ + ChangeLog.0 \ + viking.spec \ + $(INTLTOOL) + +.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 +dist-hook: viking.spec generate-changelog cp $(top_builddir)/viking.spec $(distdir) +MAINTAINERCLEANFILES = \ + gnome-doc-utils.make + +DISTCLEANFILES = \ + intltool-extract \ + intltool-merge \ + intltool-update + ACLOCAL_AMFLAGS = -I m4 + +DISTCHECK_CONFIGURE_FLAGS = \ + --disable-scrollkeeper + +# Ignore gtk theme cache files on distcheck +distuninstallcheck_listfiles = find . -type f -print | grep -v 'icon-theme.cache'