- unify payload, fixes
[oweals/gnunet.git] / contrib / Makefile.am
1 AM_CPPFLAGS = -I$(top_srcdir)/src/include -I$(top_builddir)/src/include
2
3 tap32dir = $(pkgdatadir)/openvpn-tap32/tapw32/
4
5 tap64dir = $(pkgdatadir)/openvpn-tap32/tapw64/
6
7 noinst_PROGRAMS = \
8  timeout_watchdog
9
10 if !MINGW
11 timeout_watchdog_SOURCES = \
12  timeout_watchdog.c 
13 else
14 timeout_watchdog_SOURCES = \
15  timeout_watchdog_w32.c
16 endif
17
18 noinst_SCRIPTS = \
19  terminate.py \
20  pydiffer.py \
21  gnunet_pyexpect.py \
22  gnunet_janitor.py
23
24 bin_SCRIPTS = \
25  gnunet-gns-import.sh
26
27 dist_pkgdata_DATA = \
28  gnunet-logo-color.png \
29  testing_hostkeys.ecc
30
31 if MINGW
32 tap32_DATA = \
33  openvpn-tap32/tapw32/tap0901.sys \
34  openvpn-tap32/tapw32/tap0901.cat \
35  openvpn-tap32/tapw32/OemWin2k.inf
36
37 tap64_DATA = \
38  openvpn-tap32/tapw64/tap0901.sys \
39  openvpn-tap32/tapw64/tap0901.cat \
40  openvpn-tap32/tapw64/OemWin2k.inf
41 endif
42
43 EXTRA_DIST = \
44  coverage.sh \
45  report.sh \
46  terminate.py.in \
47  gnunet_pyexpect.py.in \
48  gnunet_janitor.py.in \
49  pydiffer.py.in \
50  gnunet-gns-import.sh \
51  openvpn-tap32/tapw32/tap0901.sys \
52  openvpn-tap32/tapw32/tap0901.cat \
53  openvpn-tap32/tapw32/OemWin2k.inf \
54  openvpn-tap32/tapw64/tap0901.sys \
55  openvpn-tap32/tapw64/tap0901.cat \
56  openvpn-tap32/tapw64/OemWin2k.inf \
57  openvpn-tap32/INSTALL \
58  openvpn-tap32/tap32-signed-i386-2.1.zip \
59  openvpn-tap32/tap32-source-2.1.zip 
60
61 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
62
63 %.py: %.py.in Makefile
64         $(do_subst) < $< > $@
65         chmod +x $@
66
67 # init_gnunet_redhat \
68 # init_gnunet_ubuntu \
69 # visualize_stats.sh \
70 # gnmessage.sh \
71 # junkinsert.sh \
72 # junklookup.sh \
73 # namespacehelper.sh 
74
75
76 check_PROGRAMS = \
77  test_gnunet_prefix
78
79 if ENABLE_TEST_RUN
80 TESTS = $(check_PROGRAMS)
81 endif
82
83 test_gnunet_prefix_SOURCES = \
84  test_gnunet_prefix.c
85
86 test_gnunet_prefix_CPPFLAGS = \
87   $(LTDLINCL) $(AM_CPPFLAGS)
88
89 test_gnunet_prefix_LDADD = \
90   $(GCLIBADD) $(WINLIB) \
91   $(LTLIBICONV) \
92   $(GN_LIBINTL) \
93   $(LIBLTDL) -lunistring $(XLIB) 
94
95 pkghellodir= $(pkgdatadir)/hellos
96
97 install-data-local:
98         $(mkinstalldirs) $(DESTDIR)$(pkghellodir) 
99         @$(NORMAL_INSTALL)
100         for hello in $(srcdir)/hellos/*; do \
101           if test -f $$hello; then \
102             $(INSTALL_DATA) $$hello $(DESTDIR)$(pkghellodir)/ ; \
103           fi \
104         done
105
106 dist-hook:
107         if test -d $(srcdir)/hellos; then \
108           mkdir -p $(distdir)/hellos; \
109           for hello in $(srcdir)/hellos/*; do \
110             if test -f $$hello; then \
111               cp -p $$hello $(distdir)/hellos; \
112             fi \
113           done \
114         fi
115