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