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