Add GPSHPositioningError tag defined in exif version 2.3.1 (#7)
[platform/upstream/libexif.git] / Makefile.am
index 5f73ae9..9a3de9d 100644 (file)
@@ -1,21 +1,45 @@
+SUBDIRS = m4m po libexif test doc binary contrib
 
-SUBDIRS = m4  libexif libjpeg test po
+EXTRA_DIST = @PACKAGE_TARNAME@.spec README-Win32.txt
 
-CONFIG_CLEAN_FILES =
-EXTRA_DIST = config.rpath  @PACKAGE@.spec
+pkgconfigdir = $(libdir)/pkgconfig
 
+pkgconfig_DATA = libexif.pc
+EXTRA_DIST    += libexif.pc.in
 
-########################################################################
-# create .tar.bz2 distribution package for convenience if the
-# $(TAR) on this system supports it. else do nothing.
+noinst_DATA = libexif-uninstalled.pc
+EXTRA_DIST += libexif-uninstalled.pc.in
+
+ACLOCAL_AMFLAGS = -I auto-m4 -I m4m
+
+doc_DATA = README AUTHORS NEWS ChangeLog ABOUT-NLS COPYING
+
+#######################################################################
+# Help for the maintainer
+#
+
+# Simulate something like
+#   EXTRA_DIST_IF_EXIST = ChangeLog.git
+# If present, ship ChangeLog.git in source tarball.
+# If not present, don't ship it.
 dist-hook:
-       if [ "x${CDPATH}" != "x" ]; then \
-               echo "You have set CDPATH. If make dist fails, try to unset CDPATH."; \
+       if test -f $(srcdir)/ChangeLog.git; then \
+               cp -p $(srcdir)/ChangeLog.git $(distdir)/ChangeLog.git; \
        fi
-       -$(MAKE) dist-bzip2
 
-dist-bzip2:
-       -chmod -R a+r $(distdir)
-       -$(TAR) chojf $(distdir).tar.bz2 $(distdir)
+.PHONY: git-changelog
+git-changelog: $(srcdir)/ChangeLog.git
+
+.PHONY: $(srcdir)/ChangeLog.git
+$(srcdir)/ChangeLog.git:
+       (cd "$(srcdir)" && git2cl > $@)
+
+.PHONY: git-tag-release
+git-tag-release:
+       @tag="$$(echo "$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)-release" | sed 's|\.|_|g')"; \
+       echo "Are you sure you want to git tag \`$${tag}' your source files?"; \
+       echo "Press Ctrl-C to abort, Enter to continue."; \
+       read; \
+       cd "$(srcdir)" && git tag "$${tag}"
 
-ACLOCAL_AMFLAGS = -I m4
+# End of Makefile.am.