-fixing 2352
[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  gnunet_pyexpect.py \
17  gnunet_janitor.py
18
19 dist_pkgdata_DATA = \
20  gnunet-logo-color.png 
21
22 EXTRA_DIST = \
23  coverage.sh \
24  hostlist.cgi \
25  hostlist.php \
26  report.sh \
27  testing_hostkeys.dat \
28  gnunet_pyexpect.py.in \
29  gnunet_janitor.py.in
30
31 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
32
33 %.py: %.py.in Makefile
34         $(do_subst) < $< > $@
35         chmod +x $@
36
37 # init_gnunet_redhat \
38 # init_gnunet_ubuntu \
39 # visualize_stats.sh \
40 # gnmessage.sh \
41 # junkinsert.sh \
42 # junklookup.sh \
43 # namespacehelper.sh 
44
45
46 check_PROGRAMS = \
47  test_gnunet_prefix
48
49 test_gnunet_prefix_SOURCES = \
50  test_gnunet_prefix.c
51
52 test_gnunet_prefix_LDADD = \
53   $(GCLIBADD) $(WINLIB) \
54   $(LTLIBICONV) \
55   -lltdl -lunistring $(XLIB) 
56
57 pkghellodir= $(pkgdatadir)/hellos
58
59 install-data-local:
60         $(mkinstalldirs) $(DESTDIR)$(pkghellodir)
61         @$(NORMAL_INSTALL)
62         for hello in $(srcdir)/hellos/*; do \
63           if test -f $$hello; then \
64             $(INSTALL_DATA) $$hello $(DESTDIR)$(pkghellodir)/ ; \
65           fi \
66         done
67
68 dist-hook:
69         if test -d $(srcdir)/hellos; then \
70           mkdir -p $(distdir)/hellos; \
71           for hello in $(srcdir)/hellos/*; do \
72             if test -f $$hello; then \
73               cp -p $$hello $(distdir)/hellos; \
74             fi \
75           done \
76         fi
77