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