]> git.street.me.uk Git - andy/viking.git/blobdiff - Makefile.am
[WINDOWS] Default locations for GPSBabel
[andy/viking.git] / Makefile.am
index f963effea22fa642c9057bdcc07918296228873b..cf38f539fb53b20327a940a02cd06cee964c44ad 100644 (file)
@@ -1 +1,46 @@
-SUBDIRS = src
\ No newline at end of file
+# Optionally build documentation bits
+if VIKING_DOC
+       DO_DOCS = "doc"
+endif
+SUBDIRS = src test data po win32 help tools $(DO_DOCS)
+
+INTLTOOL = \
+       intltool-extract.in \
+       intltool-merge.in \
+       intltool-update.in
+
+full:
+       ./autogen.sh
+       make
+
+EXTRA_DIST = \
+       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 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'