bb113126e897c30238ddaaf8989f8989125118f2
[oweals/gnunet.git] / contrib / Makefile.am
1 INCLUDES = -I$(top_srcdir)/src/include -I$(top_builddir)/src/include
2
3
4 noinst_PROGRAMS = \
5  timeout_watchdog
6
7 if !MINGW
8 timeout_watchdog_SOURCES = \
9  timeout_watchdog.c 
10 else
11 timeout_watchdog_SOURCES = \
12  timeout_watchdog_w32.c
13 endif
14
15 noinst_SCRIPTS = \
16  terminate.py \
17  pydiffer.py \
18  gnunet_pyexpect.py \
19  gnunet_janitor.py
20
21 bin_SCRIPTS = \
22  gnunet-gns-import.sh
23
24 dist_pkgdata_DATA = \
25  gnunet-logo-color.png \
26  testing_hostkeys.dat \
27  testing_hostkeys.ecc
28
29 EXTRA_DIST = \
30  coverage.sh \
31  report.sh \
32  terminate.py.in \
33  gnunet_pyexpect.py.in \
34  gnunet_janitor.py.in \
35  pydiffer.py.in \
36  gnunet-gns-import.sh
37
38 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
39
40 %.py: %.py.in Makefile
41         $(do_subst) < $< > $@
42         chmod +x $@
43
44 # init_gnunet_redhat \
45 # init_gnunet_ubuntu \
46 # visualize_stats.sh \
47 # gnmessage.sh \
48 # junkinsert.sh \
49 # junklookup.sh \
50 # namespacehelper.sh 
51
52
53 check_PROGRAMS = \
54  test_gnunet_prefix
55
56 TESTS = $(check_PROGRAMS)
57
58 test_gnunet_prefix_SOURCES = \
59  test_gnunet_prefix.c
60
61 test_gnunet_prefix_LDADD = \
62   $(GCLIBADD) $(WINLIB) \
63   $(LTLIBICONV) \
64   $(GN_LIBINTL) \
65   -lltdl -lunistring $(XLIB) 
66
67 pkghellodir= $(pkgdatadir)/hellos
68
69 install-data-local:
70         $(mkinstalldirs) $(DESTDIR)$(pkghellodir)
71         @$(NORMAL_INSTALL)
72         for hello in $(srcdir)/hellos/*; do \
73           if test -f $$hello; then \
74             $(INSTALL_DATA) $$hello $(DESTDIR)$(pkghellodir)/ ; \
75           fi \
76         done
77
78 dist-hook:
79         if test -d $(srcdir)/hellos; then \
80           mkdir -p $(distdir)/hellos; \
81           for hello in $(srcdir)/hellos/*; do \
82             if test -f $$hello; then \
83               cp -p $$hello $(distdir)/hellos; \
84             fi \
85           done \
86         fi
87