1db5b3091b86d96286c3318d79538268bdf2afd5
[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  gnunet-chk.py
25
26 dist_pkgdata_DATA = \
27  gns-bcd.html \
28  gns-bcd.tex \
29  gnunet-logo.pdf \
30  gnunet-logo-color.png \
31  testing_hostkeys.ecc
32
33 if MINGW
34 tap32_DATA = \
35  openvpn-tap32/tapw32/tap0901.sys \
36  openvpn-tap32/tapw32/tap0901.cat \
37  openvpn-tap32/tapw32/OemWin2k.inf
38
39 tap64_DATA = \
40  openvpn-tap32/tapw64/tap0901.sys \
41  openvpn-tap32/tapw64/tap0901.cat \
42  openvpn-tap32/tapw64/OemWin2k.inf
43 endif
44
45 EXTRA_DIST = \
46  no_forcestart.conf \
47  no_autostart_above_core.conf \
48  coverage.sh \
49  nssswitch.conf \
50  report.sh \
51  terminate.py.in \
52  gnunet_pyexpect.py.in \
53  gnunet_janitor.py.in \
54  gnunet-chk.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 # Use SUFFIX Extension rules, they are more portable for every
73 # implementation of 'make'.
74 # You'll also run into the "'%' is a GNU make extension warning"
75 # if you use this:
76 #
77 #%.py: %.py.in Makefile
78 #       $(do_subst) < $< > $@
79 #       chmod +x $@
80 #
81 # instead of this:
82
83 SUFFIXES = .py.in .py
84
85 .py.in.py:
86         $(do_subst) < $< > $@
87         chmod +x $@
88
89 # init_gnunet_redhat \
90 # init_gnunet_ubuntu \
91 # visualize_stats.sh \
92 # gnmessage.sh \
93 # junkinsert.sh \
94 # junklookup.sh \
95 # namespacehelper.sh
96
97
98 check_PROGRAMS = \
99  test_gnunet_prefix
100
101 if ENABLE_TEST_RUN
102 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
103 TESTS = $(check_PROGRAMS)
104 endif
105
106 test_gnunet_prefix_SOURCES = \
107  test_gnunet_prefix.c
108
109 test_gnunet_prefix_CPPFLAGS = \
110   $(LTDLINCL) $(AM_CPPFLAGS)
111
112 test_gnunet_prefix_LDADD = \
113   $(GCLIBADD) $(WINLIB) \
114   $(LTLIBICONV) \
115   $(GN_LIBINTL) \
116   $(LIBLTDL) -lunistring $(XLIB)
117
118 pkghellodir= $(pkgdatadir)/hellos
119
120 install-data-local:
121         $(mkinstalldirs) $(DESTDIR)$(pkghellodir)
122         @$(NORMAL_INSTALL)
123         for hello in $(srcdir)/hellos/*; do \
124           if test -f $$hello; then \
125             $(INSTALL_DATA) $$hello $(DESTDIR)$(pkghellodir)/ ; \
126           fi \
127         done
128
129 dist-hook:
130         if test -d $(srcdir)/hellos; then \
131           mkdir -p $(distdir)/hellos; \
132           for hello in $(srcdir)/hellos/*; do \
133             if test -f $$hello; then \
134               cp -p $$hello $(distdir)/hellos; \
135             fi \
136           done \
137         fi