summaryrefslogtreecommitdiffstats
path: root/Makefile.am
blob: 60fb64c884a615df39ec040f112bf515ee0cf30a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
## Process this file with automake to produce Makefile.in

#if COMPILE_LIBGCRYPT
#gcrypt = gcrypt
#my_clean_gcrypt =
#else
#gcrypt =
#my_clean_gcrypt = gcrypt/Makefile
#endif

gcrypt = gcrypt
my_clean_gcrypt =

if CROSS_COMPILING
checks =
else
checks = checks
endif

SUBDIRS = intl zlib jnlib util mpi cipher ${gcrypt} g10 po doc ${checks}
EXTRA_DIST = README-alpha VERSION  PROJECTS BUGS
# gettext never gets it right, so we take here care of deleting the
# symlink.  my_clean_gcrypt is just a kludge until we can include
# libgcrypt.
DISTCLEANFILES = g10defs.h intl/libintl.h ${my_clean_gcrypt}

dist-hook:
	@set -e; \
	 for file in `cd $(top_srcdir); find . -type f -name distfiles`; do \
	    dir=`dirname $$file` ; $(mkinstalldirs) $(distdir)/$$dir ; \
	    for i in distfiles `cat $(top_srcdir)/$$file` ; do \
		ln $(top_srcdir)/$$dir/$$i $(distdir)/$$dir/$$i 2> /dev/null \
		|| cp -p $(top_srcdir)/$$dir/$$i $(distdir)/$$dir/$$i; \
	    done ; \
	done
	@set -e; \
	sed -e 's/@pkg_version@/$(VERSION)/g' \
	    $(top_srcdir)/scripts/gnupg.spec.in \
	    > $(distdir)/scripts/gnupg.spec


if MAINTAINER_MODE
# This is only useful within my local environment (wk)
cvs-get:
	rsync -Cavuzb  --exclude scratch --exclude .deps \
		      wkoch@sigtrap.guug.de:work/gnupg .

cvs-put:
	rsync -Cavuzb --exclude .deps --exclude scratch \
		      . wkoch@sigtrap.guug.de:work/gnupg

cvs-sync: cvs-get cvs-put

endif


.PHONY: cvs-get cvs-put cvs-sync