Post release version bump
[gpgol.git] / Makefile.am
index febea9d..4f80a37 100644 (file)
 
 ACLOCAL_AMFLAGS = -I m4
 AUTOMAKE_OPTIONS = dist-bzip2
-# Because we can only build the w32 version e need to help automake here a bit.
-DISTCHECK_CONFIGURE_FLAGS = --host=i586-mingw32msvc --build=i686-pc-linux-gnu \
-                            --prefix=@prefix@ \
+# Because we can only build the w32 version we need to help automake here a bit.
+DISTCHECK_CONFIGURE_FLAGS = --host=@host@  --build=@build@ \
+                            SYSROOT=@prefix@ \
+                            PKG_CONFIG_LIBDIR=@prefix@ \
                             --with-gpg-error-prefix=@prefix@ \
                             --with-gpgme-prefix=@prefix@ \
                             --with-libassuan-prefix=@prefix@
@@ -23,8 +24,11 @@ DISTCHECK_CONFIGURE_FLAGS = --host=i586-mingw32msvc --build=i686-pc-linux-gnu \
 # Note: Do not put ChangeLog-2011 here - it exists only in the repo.
 EXTRA_DIST = autogen.sh autogen.rc
 
-
-SUBDIRS = src forms po m4 doc
+if HAVE_W32_SYSTEM
+SUBDIRS = src tests forms po m4 doc
+else
+SUBDIRS = tests
+endif
 
 dist-hook: gen-ChangeLog
        echo "$(VERSION)" > $(distdir)/VERSION
@@ -42,6 +46,16 @@ gen-ChangeLog:
          mv $(distdir)/cl-t $(distdir)/ChangeLog;                      \
        fi
 
-
-
-
+distcheck-hook:
+       set -e; ( \
+       pref="#+macro: gpgol_" ;\
+       reldate="$$(date -u +%Y-%m-%d)" ;\
+        echo "$${pref}ver  $(PACKAGE_VERSION)"  ;\
+        echo "$${pref}date $${reldate}" ;\
+        list='$(DIST_ARCHIVES)'; for i in $$list; do \
+         case "$$i" in *.tar.bz2) \
+            echo "$${pref}size $$(wc -c <$$i|awk '{print int($$1/1024)}')k" ;\
+           echo "$${pref}sha1 $$(sha1sum <$$i|cut -d' ' -f1)" ;\
+           echo "$${pref}sha2 $$(sha256sum <$$i|cut -d' ' -f1)" ;;\
+         esac;\
+       done ) | tee $(distdir).swdb