1 # Makefile.am - main makefile for GPGol
2 # Copyright (C) 2005 g10 Code GmbH
4 # This file is free software; as a special exception the author gives
5 # unlimited permission to copy and/or distribute it, with or without
6 # modifications, as long as this notice is preserved.
8 # This program is distributed in the hope that it will be useful, but
9 # WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
10 # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 ## Process this file with automake to produce Makefile.in
14 ACLOCAL_AMFLAGS = -I m4
15 AUTOMAKE_OPTIONS = dist-bzip2
16 # Because we can only build the w32 version we need to help automake here a bit.
17 DISTCHECK_CONFIGURE_FLAGS = --host=@host@ --build=@build@ \
19 PKG_CONFIG_LIBDIR=@prefix@ \
20 --with-gpg-error-prefix=@prefix@ \
21 --with-gpgme-prefix=@prefix@ \
22 --with-libassuan-prefix=@prefix@
24 # Note: Do not put ChangeLog-2011 here - it exists only in the repo.
25 EXTRA_DIST = autogen.sh autogen.rc
28 SUBDIRS = src forms po m4 doc
33 dist-hook: gen-ChangeLog
34 echo "$(VERSION)" > $(distdir)/VERSION
36 gen_start_date = 2011-12-01T00:00:00
39 if test -d $(top_srcdir)/.git; then \
40 (cd $(top_srcdir) && \
41 ./build-aux/gitlog-to-changelog \
42 --amend=build-aux/git-log-fix --tear-off \
43 --since=$(gen_start_date) ) > $(distdir)/cl-t; \
44 cat $(top_srcdir)/ChangeLog-2011 >> $(distdir)/cl-t; \
45 rm -f $(distdir)/ChangeLog; \
46 mv $(distdir)/cl-t $(distdir)/ChangeLog; \
51 pref="#+macro: gpgol_" ;\
52 reldate="$$(date -u +%Y-%m-%d)" ;\
53 echo "$${pref}ver $(PACKAGE_VERSION)" ;\
54 echo "$${pref}date $${reldate}" ;\
55 list='$(DIST_ARCHIVES)'; for i in $$list; do \
56 case "$$i" in *.tar.bz2) \
57 echo "$${pref}size $$(wc -c <$$i|awk '{print int($$1/1024)}')k" ;\
58 echo "$${pref}sha1 $$(sha1sum <$$i|cut -d' ' -f1)" ;\
59 echo "$${pref}sha2 $$(sha256sum <$$i|cut -d' ' -f1)" ;;\
61 done ) | tee $(distdir).swdb