- fix segfault
[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 test_gnunet_prefix_SOURCES = \
57  test_gnunet_prefix.c
58
59 test_gnunet_prefix_LDADD = \
60   $(GCLIBADD) $(WINLIB) \
61   $(LTLIBICONV) \
62   $(GN_LIBINTL) \
63   -lltdl -lunistring $(XLIB) 
64
65 pkghellodir= $(pkgdatadir)/hellos
66
67 install-data-local:
68         $(mkinstalldirs) $(DESTDIR)$(pkghellodir)
69         @$(NORMAL_INSTALL)
70         for hello in $(srcdir)/hellos/*; do \
71           if test -f $$hello; then \
72             $(INSTALL_DATA) $$hello $(DESTDIR)$(pkghellodir)/ ; \
73           fi \
74         done
75
76 dist-hook:
77         if test -d $(srcdir)/hellos; then \
78           mkdir -p $(distdir)/hellos; \
79           for hello in $(srcdir)/hellos/*; do \
80             if test -f $$hello; then \
81               cp -p $$hello $(distdir)/hellos; \
82             fi \
83           done \
84         fi
85