-adding single file for testing without autostarts above core level
[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  gns-bcd.html \
29  gns-bcd.tex \
30  gnunet-logo.pdf \
31  gnunet-logo-color.png \
32  testing_hostkeys.ecc
33
34 if MINGW
35 tap32_DATA = \
36  openvpn-tap32/tapw32/tap0901.sys \
37  openvpn-tap32/tapw32/tap0901.cat \
38  openvpn-tap32/tapw32/OemWin2k.inf
39
40 tap64_DATA = \
41  openvpn-tap32/tapw64/tap0901.sys \
42  openvpn-tap32/tapw64/tap0901.cat \
43  openvpn-tap32/tapw64/OemWin2k.inf
44 endif
45
46 EXTRA_DIST = \
47  no_forcestart.conf \
48  no_autostart_above_core.conf \
49  coverage.sh \
50  report.sh \
51  terminate.py.in \
52  gnunet_pyexpect.py.in \
53  gnunet_janitor.py.in \
54  pydiffer.py.in \
55  gnunet-gns-import.sh \
56  openvpn-tap32/tapw32/tap0901.sys \
57  openvpn-tap32/tapw32/tap0901.cat \
58  openvpn-tap32/tapw32/OemWin2k.inf \
59  openvpn-tap32/tapw64/tap0901.sys \
60  openvpn-tap32/tapw64/tap0901.cat \
61  openvpn-tap32/tapw64/OemWin2k.inf \
62  openvpn-tap32/INSTALL \
63  openvpn-tap32/tap32-signed-i386-2.1.zip \
64  openvpn-tap32/tap32-source-2.1.zip
65
66 CLEANFILES = \
67   $(noinst_SCRIPTS)
68
69 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
70
71 %.py: %.py.in Makefile
72         $(do_subst) < $< > $@
73         chmod +x $@
74
75 # init_gnunet_redhat \
76 # init_gnunet_ubuntu \
77 # visualize_stats.sh \
78 # gnmessage.sh \
79 # junkinsert.sh \
80 # junklookup.sh \
81 # namespacehelper.sh
82
83
84 check_PROGRAMS = \
85  test_gnunet_prefix
86
87 if ENABLE_TEST_RUN
88 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
89 TESTS = $(check_PROGRAMS)
90 endif
91
92 test_gnunet_prefix_SOURCES = \
93  test_gnunet_prefix.c
94
95 test_gnunet_prefix_CPPFLAGS = \
96   $(LTDLINCL) $(AM_CPPFLAGS)
97
98 test_gnunet_prefix_LDADD = \
99   $(GCLIBADD) $(WINLIB) \
100   $(LTLIBICONV) \
101   $(GN_LIBINTL) \
102   $(LIBLTDL) -lunistring $(XLIB)
103
104 pkghellodir= $(pkgdatadir)/hellos
105
106 install-data-local:
107         $(mkinstalldirs) $(DESTDIR)$(pkghellodir)
108         @$(NORMAL_INSTALL)
109         for hello in $(srcdir)/hellos/*; do \
110           if test -f $$hello; then \
111             $(INSTALL_DATA) $$hello $(DESTDIR)$(pkghellodir)/ ; \
112           fi \
113         done
114
115 dist-hook:
116         if test -d $(srcdir)/hellos; then \
117           mkdir -p $(distdir)/hellos; \
118           for hello in $(srcdir)/hellos/*; do \
119             if test -f $$hello; then \
120               cp -p $$hello $(distdir)/hellos; \
121             fi \
122           done \
123         fi
124