version bump, update ChangeLog, fix make dist
[oweals/gnunet.git] / contrib / Makefile.am
1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include -I$(top_builddir)/src/include
3
4 tap32dir = $(pkgdatadir)/openvpn-tap32/tapw32/
5
6 tap64dir = $(pkgdatadir)/openvpn-tap32/tapw64/
7
8 noinst_SCRIPTS = \
9  scripts/terminate.py \
10  scripts/pydiffer.py \
11  scripts/removetrailingwhitespace.py \
12  scripts/gnunet_pyexpect.py \
13  scripts/gnunet_janitor.py \
14  scripts/gnunet-chk.py
15
16 dist_pkgdata_DATA = \
17  gns/gns-bcd.html \
18  gns/gns-bcd.tex \
19  gns/def.tex \
20  gns/gns-form-fields.xml \
21  gns/gns-form.xslt \
22  branding/logo/gnunet-logo.pdf \
23  branding/logo/gnunet-logo-color.png \
24  testing_hostkeys.ecc
25
26 if MINGW
27 tap32_DATA = \
28  3rdparty/Windows/openvpn-tap32/tapw32/tap0901.sys \
29  3rdparty/Windows/openvpn-tap32/tapw32/tap0901.cat \
30  3rdparty/Windows/openvpn-tap32/tapw32/OemWin2k.inf
31
32 tap64_DATA = \
33  3rdparty/Windows/openvpn-tap32/tapw64/tap0901.sys \
34  3rdparty/Windows/openvpn-tap32/tapw64/tap0901.cat \
35  3rdparty/Windows/openvpn-tap32/tapw64/OemWin2k.inf
36 endif
37
38 EXTRA_DIST = \
39  conf/colorit/colorit.conf \
40  conf/editors/eclipse/gnunet_codingstyle.xml \
41  conf/gnunet/no_forcestart.conf \
42  conf/gnunet/no_autostart_above_core.conf \
43  conf/nss/nssswitch.conf \
44  conf/wireshark/wireshark.lua \
45  scripts/coverage.sh \
46  scripts/terminate.py.in \
47  scripts/gnunet_pyexpect.py.in \
48  scripts/gnunet_janitor.py.in \
49  scripts/gnunet-chk.py.in \
50  scripts/gnunet-bugreport \
51  scripts/removetrailingwhitespace.py.in \
52  scripts/pydiffer.py.in \
53  packages/nix/default.nix \
54  packages/nix/gnunet-dev.nix \
55  3rdparty/Windows/openvpn-tap32/tapw32/tap0901.sys \
56  3rdparty/Windows/openvpn-tap32/tapw32/tap0901.cat \
57  3rdparty/Windows/openvpn-tap32/tapw32/OemWin2k.inf \
58  3rdparty/Windows/openvpn-tap32/tapw64/tap0901.sys \
59  3rdparty/Windows/openvpn-tap32/tapw64/tap0901.cat \
60  3rdparty/Windows/openvpn-tap32/tapw64/OemWin2k.inf \
61  3rdparty/Windows/openvpn-tap32/INSTALL \
62  3rdparty/Windows/openvpn-tap32/tap32-signed-i386-2.1.zip \
63  3rdparty/Windows/openvpn-tap32/tap32-source-2.1.zip
64
65 CLEANFILES = \
66   $(noinst_SCRIPTS)
67
68 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
69
70 # Use SUFFIX Extension rules, they are more portable for every
71 # implementation of 'make'.
72 # You'll also run into the "'%' is a GNU make extension warning"
73 # if you use this:
74 #
75 #%.py: %.py.in Makefile
76 #       $(do_subst) < $< > $@
77 #       chmod +x $@
78 #
79 # instead of this:
80 SUFFIXES = .py.in .py
81
82 .py.in.py:
83         $(do_subst) < $< > $@
84         chmod +x $@
85
86 check_PROGRAMS = \
87  test_gnunet_prefix
88
89 if ENABLE_TEST_RUN
90 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
91 TESTS = $(check_PROGRAMS)
92 endif
93
94 test_gnunet_prefix_SOURCES = \
95  test_gnunet_prefix.c
96
97 test_gnunet_prefix_CPPFLAGS = \
98   $(LTDLINCL) $(AM_CPPFLAGS)
99
100 test_gnunet_prefix_LDADD = \
101   $(GCLIBADD) $(WINLIB) \
102   $(LTLIBICONV) \
103   $(GN_LIBINTL) \
104   $(LIBLTDL) -lunistring $(XLIB)
105
106 pkghellodir= $(pkgdatadir)/hellos
107
108 install-data-local:
109         $(mkinstalldirs) $(DESTDIR)$(pkghellodir)
110         @$(NORMAL_INSTALL)
111         for hello in $(srcdir)/hellos/*; do \
112           if test -f $$hello; then \
113             $(INSTALL_DATA) $$hello $(DESTDIR)$(pkghellodir)/ ; \
114           fi \
115         done
116         install scripts/gnunet-bugreport $(DESTDIR)$(bindir)/gnunet-bugreport
117
118 dist-hook:
119         if test -d $(srcdir)/hellos; then \
120           mkdir -p $(distdir)/hellos; \
121           for hello in $(srcdir)/hellos/*; do \
122             if test -f $$hello; then \
123               cp -p $$hello $(distdir)/hellos; \
124             fi \
125           done \
126         fi