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