88f3a0677be1877214d8f41a8784945c89bce267
[oweals/gnunet.git] / contrib / Makefile.am
1 INCLUDES = -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.dat \
30  testing_hostkeys.ecc
31
32 if MINGW
33 tap32_DATA = \
34  openvpn-tap32/tapw32/tap0901.sys \
35  openvpn-tap32/tapw32/tap0901.cat \
36  openvpn-tap32/tapw32/OemWin2k.inf
37
38 tap64_DATA = \
39  openvpn-tap32/tapw64/tap0901.sys \
40  openvpn-tap32/tapw64/tap0901.cat \
41  openvpn-tap32/tapw64/OemWin2k.inf
42 endif
43
44 EXTRA_DIST = \
45  coverage.sh \
46  report.sh \
47  terminate.py.in \
48  gnunet_pyexpect.py.in \
49  gnunet_janitor.py.in \
50  pydiffer.py.in \
51  gnunet-gns-import.sh \
52  openvpn-tap32/tapw32/tap0901.sys \
53  openvpn-tap32/tapw32/tap0901.cat \
54  openvpn-tap32/tapw32/OemWin2k.inf \
55  openvpn-tap32/tapw64/tap0901.sys \
56  openvpn-tap32/tapw64/tap0901.cat \
57  openvpn-tap32/tapw64/OemWin2k.inf
58
59 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
60
61 %.py: %.py.in Makefile
62         $(do_subst) < $< > $@
63         chmod +x $@
64
65 # init_gnunet_redhat \
66 # init_gnunet_ubuntu \
67 # visualize_stats.sh \
68 # gnmessage.sh \
69 # junkinsert.sh \
70 # junklookup.sh \
71 # namespacehelper.sh 
72
73
74 check_PROGRAMS = \
75  test_gnunet_prefix
76
77 TESTS = $(check_PROGRAMS)
78
79 test_gnunet_prefix_SOURCES = \
80  test_gnunet_prefix.c
81
82 test_gnunet_prefix_LDADD = \
83   $(GCLIBADD) $(WINLIB) \
84   $(LTLIBICONV) \
85   $(GN_LIBINTL) \
86   -lltdl -lunistring $(XLIB) 
87
88 pkghellodir= $(pkgdatadir)/hellos
89
90 install-data-local:
91         $(mkinstalldirs) $(DESTDIR)$(pkghellodir) 
92         @$(NORMAL_INSTALL)
93         for hello in $(srcdir)/hellos/*; do \
94           if test -f $$hello; then \
95             $(INSTALL_DATA) $$hello $(DESTDIR)$(pkghellodir)/ ; \
96           fi \
97         done
98
99 dist-hook:
100         if test -d $(srcdir)/hellos; then \
101           mkdir -p $(distdir)/hellos; \
102           for hello in $(srcdir)/hellos/*; do \
103             if test -f $$hello; then \
104               cp -p $$hello $(distdir)/hellos; \
105             fi \
106           done \
107         fi
108