add extern "C" wrapper
[platform/upstream/libexif.git] / Makefile.am
index 6ef835c..146a7e1 100644 (file)
@@ -1,15 +1,45 @@
-SUBDIRS = intl po libexif libjpeg test m4
+SUBDIRS = m4m po libexif test doc binary contrib
 
-EXTRA_DIST = @PACKAGE@.spec
+EXTRA_DIST = @PACKAGE_TARNAME@.spec README-Win32.txt
 
-########################################################################
-# The following default options for aclocal and automake
-# are required in the top level Makefile.am for the automatic 
-# re-building of the build system files (only if configured with
-# --enable-maintainer-mode). 
+pkgconfigdir = $(libdir)/pkgconfig
+
+pkgconfig_DATA = libexif.pc
+EXTRA_DIST    += libexif.pc.in
+
+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 SECURITY.md
+
+#######################################################################
+# Help for the maintainer
 #
-# It is not sufficient to have these options somewhere in autogen.sh!
 
-ACLOCAL_AMFLAGS = -I m4
-AUTOMAKE_OPTIONS = gnu
+# 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 test -f $(srcdir)/ChangeLog.git; then \
+               cp -p $(srcdir)/ChangeLog.git $(distdir)/ChangeLog.git; \
+       fi
+
+.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}"
 
+# End of Makefile.am.