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