move gnunet-timeout to src/util/, fix issues related to #5375
[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_SCRIPTS = \
9  scripts/terminate.py \
10  scripts/pydiffer.py \
11  scripts/removetrailingwhitespace.py \
12  scripts/gnunet_pyexpect.py \
13  scripts/gnunet_janitor.py \
14  scripts/gnunet-chk.py
15
16 dist_pkgdata_DATA = \
17  gns/gns-bcd.html \
18  gns/gns-bcd.tex \
19  gns/def.tex \
20  gns/gns-form-fields.xml \
21  gns/gns-form.xslt \
22  branding/logo/gnunet-logo.pdf \
23  branding/logo/gnunet-logo-color.png \
24  testing_hostkeys.ecc
25
26 if MINGW
27 tap32_DATA = \
28  3rdparty/Windows/openvpn-tap32/tapw32/tap0901.sys \
29  3rdparty/Windows/openvpn-tap32/tapw32/tap0901.cat \
30  3rdparty/Windows/openvpn-tap32/tapw32/OemWin2k.inf
31
32 tap64_DATA = \
33  3rdparty/Windows/openvpn-tap32/tapw64/tap0901.sys \
34  3rdparty/Windows/openvpn-tap32/tapw64/tap0901.cat \
35  3rdparty/Windows/openvpn-tap32/tapw64/OemWin2k.inf
36 endif
37
38 EXTRA_DIST = \
39  conf/colorit/colorit.conf \
40  conf/editors/eclipse/gnunet_codingstyle.xml \
41  conf/gnunet/no_forcestart.conf \
42  conf/gnunet/no_autostart_above_core.conf \
43  conf/nss/nssswitch.conf \
44  conf/wireshark/wireshark.lua \
45  scripts/coverage.sh \
46  scripts/terminate.py.in \
47  scripts/gnunet_pyexpect.py.in \
48  scripts/gnunet_janitor.py.in \
49  scripts/gnunet-chk.py.in \
50  scripts/removetrailingwhitespace.py.in \
51  scripts/pydiffer.py.in \
52  packages/nix/default.nix \
53  packages/nix/gnunet-dev.nix \
54  3rdparty/Windows/openvpn-tap32/tapw32/tap0901.sys \
55  3rdparty/Windows/openvpn-tap32/tapw32/tap0901.cat \
56  3rdparty/Windows/openvpn-tap32/tapw32/OemWin2k.inf \
57  3rdparty/Windows/openvpn-tap32/tapw64/tap0901.sys \
58  3rdparty/Windows/openvpn-tap32/tapw64/tap0901.cat \
59  3rdparty/Windows/openvpn-tap32/tapw64/OemWin2k.inf \
60  3rdparty/Windows/openvpn-tap32/INSTALL \
61  3rdparty/Windows/openvpn-tap32/tap32-signed-i386-2.1.zip \
62  3rdparty/Windows/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 # Use SUFFIX Extension rules, they are more portable for every
70 # implementation of 'make'.
71 # You'll also run into the "'%' is a GNU make extension warning"
72 # if you use this:
73 #
74 #%.py: %.py.in Makefile
75 #       $(do_subst) < $< > $@
76 #       chmod +x $@
77 #
78 # instead of this:
79 SUFFIXES = .py.in .py
80
81 .py.in.py:
82         $(do_subst) < $< > $@
83         chmod +x $@
84
85 check_PROGRAMS = \
86  test_gnunet_prefix
87
88 if ENABLE_TEST_RUN
89 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
90 TESTS = $(check_PROGRAMS)
91 endif
92
93 test_gnunet_prefix_SOURCES = \
94  test_gnunet_prefix.c
95
96 test_gnunet_prefix_CPPFLAGS = \
97   $(LTDLINCL) $(AM_CPPFLAGS)
98
99 test_gnunet_prefix_LDADD = \
100   $(GCLIBADD) $(WINLIB) \
101   $(LTLIBICONV) \
102   $(GN_LIBINTL) \
103   $(LIBLTDL) -lunistring $(XLIB)
104
105 pkghellodir= $(pkgdatadir)/hellos
106
107 install-data-local:
108         $(mkinstalldirs) $(DESTDIR)$(pkghellodir)
109         @$(NORMAL_INSTALL)
110         for hello in $(srcdir)/hellos/*; do \
111           if test -f $$hello; then \
112             $(INSTALL_DATA) $$hello $(DESTDIR)$(pkghellodir)/ ; \
113           fi \
114         done
115         install scripts/gnunet-bugreport $(DESTDIR)$(bindir)/gnunet-bugreport
116
117 dist-hook:
118         if test -d $(srcdir)/hellos; then \
119           mkdir -p $(distdir)/hellos; \
120           for hello in $(srcdir)/hellos/*; do \
121             if test -f $$hello; then \
122               cp -p $$hello $(distdir)/hellos; \
123             fi \
124           done \
125         fi