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