Move wip'ish share of shepherd service to https://d.n0.is/pub/tmp/ where it is regula...
[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  scripts/terminate.py \
21  scripts/pydiffer.py \
22  scripts/removetrailingwhitespace.py \
23  scripts/gnunet_pyexpect.py \
24  scripts/gnunet_janitor.py \
25  scripts/gnunet-chk.py
26
27 dist_pkgdata_DATA = \
28  gns/gns-bcd.html \
29  gns/gns-bcd.tex \
30  gns/def.tex \
31  gns/gns-form-fields.xml \
32  gns/gns-form.xslt \
33  branding/logo/gnunet-logo.pdf \
34  branding/logo/gnunet-logo-color.png \
35  testing_hostkeys.ecc
36
37 if MINGW
38 tap32_DATA = \
39  3rdparty/Windows/openvpn-tap32/tapw32/tap0901.sys \
40  3rdparty/Windows/openvpn-tap32/tapw32/tap0901.cat \
41  3rdparty/Windows/openvpn-tap32/tapw32/OemWin2k.inf
42
43 tap64_DATA = \
44  3rdparty/Windows/openvpn-tap32/tapw64/tap0901.sys \
45  3rdparty/Windows/openvpn-tap32/tapw64/tap0901.cat \
46  3rdparty/Windows/openvpn-tap32/tapw64/OemWin2k.inf
47 endif
48
49 EXTRA_DIST = \
50  conf/colorit/colorit.conf \
51  conf/editors/eclipse/gnunet_codingstyle.xml \
52  conf/gnunet/no_forcestart.conf \
53  conf/gnunet/no_autostart_above_core.conf \
54  conf/nss/nssswitch.conf \
55  conf/wireshark/wireshark.lua \
56  scripts/coverage.sh \
57  scripts/terminate.py.in \
58  scripts/gnunet_pyexpect.py.in \
59  scripts/gnunet_janitor.py.in \
60  scripts/gnunet-chk.py.in \
61  scripts/removetrailingwhitespace.py.in \
62  scripts/pydiffer.py.in \
63  packages/nix/default.nix \
64  packages/nix/gnunet-dev.nix \
65  3rdparty/Windows/openvpn-tap32/tapw32/tap0901.sys \
66  3rdparty/Windows/openvpn-tap32/tapw32/tap0901.cat \
67  3rdparty/Windows/openvpn-tap32/tapw32/OemWin2k.inf \
68  3rdparty/Windows/openvpn-tap32/tapw64/tap0901.sys \
69  3rdparty/Windows/openvpn-tap32/tapw64/tap0901.cat \
70  3rdparty/Windows/openvpn-tap32/tapw64/OemWin2k.inf \
71  3rdparty/Windows/openvpn-tap32/INSTALL \
72  3rdparty/Windows/openvpn-tap32/tap32-signed-i386-2.1.zip \
73  3rdparty/Windows/openvpn-tap32/tap32-source-2.1.zip
74
75 CLEANFILES = \
76   $(noinst_SCRIPTS)
77
78 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
79
80 # Use SUFFIX Extension rules, they are more portable for every
81 # implementation of 'make'.
82 # You'll also run into the "'%' is a GNU make extension warning"
83 # if you use this:
84 #
85 #%.py: %.py.in Makefile
86 #       $(do_subst) < $< > $@
87 #       chmod +x $@
88 #
89 # instead of this:
90 SUFFIXES = .py.in .py
91
92 .py.in.py:
93         $(do_subst) < $< > $@
94         chmod +x $@
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         install scripts/gnunet-bugreport $(DESTDIR)$(bindir)/gnunet-bugreport
127
128 dist-hook:
129         if test -d $(srcdir)/hellos; then \
130           mkdir -p $(distdir)/hellos; \
131           for hello in $(srcdir)/hellos/*; do \
132             if test -f $$hello; then \
133               cp -p $$hello $(distdir)/hellos; \
134             fi \
135           done \
136         fi