Move hacks.el to contrib
[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  removetrailingwhitespace.py \
23  gnunet_pyexpect.py \
24  gnunet_janitor.py \
25  gnunet-chk.py
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  no_autostart_above_core.conf \
49  coverage.sh \
50  nssswitch.conf \
51  report.sh \
52  terminate.py.in \
53  gnunet_pyexpect.py.in \
54  gnunet_janitor.py.in \
55  gnunet-chk.py.in \
56  removetrailingwhitespace.py.in \
57  pydiffer.py.in \
58  gnunet-gns-import.sh \
59  openvpn-tap32/tapw32/tap0901.sys \
60  openvpn-tap32/tapw32/tap0901.cat \
61  openvpn-tap32/tapw32/OemWin2k.inf \
62  openvpn-tap32/tapw64/tap0901.sys \
63  openvpn-tap32/tapw64/tap0901.cat \
64  openvpn-tap32/tapw64/OemWin2k.inf \
65  openvpn-tap32/INSTALL \
66  openvpn-tap32/tap32-signed-i386-2.1.zip \
67  openvpn-tap32/tap32-source-2.1.zip
68
69 CLEANFILES = \
70   $(noinst_SCRIPTS)
71
72 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
73
74 # Use SUFFIX Extension rules, they are more portable for every
75 # implementation of 'make'.
76 # You'll also run into the "'%' is a GNU make extension warning"
77 # if you use this:
78 #
79 #%.py: %.py.in Makefile
80 #       $(do_subst) < $< > $@
81 #       chmod +x $@
82 #
83 # instead of this:
84
85 SUFFIXES = .py.in .py
86
87 .py.in.py:
88         $(do_subst) < $< > $@
89         chmod +x $@
90
91 # init_gnunet_redhat \
92 # init_gnunet_ubuntu \
93 # visualize_stats.sh \
94 # gnmessage.sh \
95 # junkinsert.sh \
96 # junklookup.sh \
97 # namespacehelper.sh
98
99
100 check_PROGRAMS = \
101  test_gnunet_prefix
102
103 if ENABLE_TEST_RUN
104 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
105 TESTS = $(check_PROGRAMS)
106 endif
107
108 test_gnunet_prefix_SOURCES = \
109  test_gnunet_prefix.c
110
111 test_gnunet_prefix_CPPFLAGS = \
112   $(LTDLINCL) $(AM_CPPFLAGS)
113
114 test_gnunet_prefix_LDADD = \
115   $(GCLIBADD) $(WINLIB) \
116   $(LTLIBICONV) \
117   $(GN_LIBINTL) \
118   $(LIBLTDL) -lunistring $(XLIB)
119
120 pkghellodir= $(pkgdatadir)/hellos
121
122 install-data-local:
123         $(mkinstalldirs) $(DESTDIR)$(pkghellodir)
124         @$(NORMAL_INSTALL)
125         for hello in $(srcdir)/hellos/*; do \
126           if test -f $$hello; then \
127             $(INSTALL_DATA) $$hello $(DESTDIR)$(pkghellodir)/ ; \
128           fi \
129         done
130
131 dist-hook:
132         if test -d $(srcdir)/hellos; then \
133           mkdir -p $(distdir)/hellos; \
134           for hello in $(srcdir)/hellos/*; do \
135             if test -f $$hello; then \
136               cp -p $$hello $(distdir)/hellos; \
137             fi \
138           done \
139         fi