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