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