X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=contrib%2FMakefile.am;h=f36922b202c9d6444d664963cb856632acffb0a0;hb=05c4d0f2433df51a628b8f772af961ce1329d65e;hp=df6bdc275b9220223eaa70f96ac819d66f7a2387;hpb=7b1c5fd65daf683fdc02d59fb14543585fd30e27;p=oweals%2Fgnunet.git diff --git a/contrib/Makefile.am b/contrib/Makefile.am index df6bdc275..f36922b20 100644 --- a/contrib/Makefile.am +++ b/contrib/Makefile.am @@ -1,29 +1,68 @@ -INCLUDES = -I$(top_srcdir)/src/include -I$(top_builddir)/src/include +AM_CPPFLAGS = -I$(top_srcdir)/src/include -I$(top_builddir)/src/include +tap32dir = $(pkgdatadir)/openvpn-tap32/tapw32/ + +tap64dir = $(pkgdatadir)/openvpn-tap32/tapw64/ -if !MINGW noinst_PROGRAMS = \ timeout_watchdog +if !MINGW timeout_watchdog_SOURCES = \ - timeout_watchdog.c + timeout_watchdog.c +else +timeout_watchdog_SOURCES = \ + timeout_watchdog_w32.c endif noinst_SCRIPTS = \ + terminate.py \ + pydiffer.py \ gnunet_pyexpect.py \ gnunet_janitor.py +bin_SCRIPTS = \ + gnunet-gns-import.sh + dist_pkgdata_DATA = \ - gnunet-logo-color.png + gns-bcd.html \ + gns-bcd.tex \ + gnunet-logo.pdf \ + gnunet-logo-color.png \ + testing_hostkeys.ecc + +if MINGW +tap32_DATA = \ + openvpn-tap32/tapw32/tap0901.sys \ + openvpn-tap32/tapw32/tap0901.cat \ + openvpn-tap32/tapw32/OemWin2k.inf + +tap64_DATA = \ + openvpn-tap32/tapw64/tap0901.sys \ + openvpn-tap32/tapw64/tap0901.cat \ + openvpn-tap32/tapw64/OemWin2k.inf +endif EXTRA_DIST = \ coverage.sh \ - hostlist.cgi \ - hostlist.php \ report.sh \ - testing_hostkeys.dat \ + terminate.py.in \ gnunet_pyexpect.py.in \ - gnunet_janitor.py.in + gnunet_janitor.py.in \ + pydiffer.py.in \ + gnunet-gns-import.sh \ + openvpn-tap32/tapw32/tap0901.sys \ + openvpn-tap32/tapw32/tap0901.cat \ + openvpn-tap32/tapw32/OemWin2k.inf \ + openvpn-tap32/tapw64/tap0901.sys \ + openvpn-tap32/tapw64/tap0901.cat \ + openvpn-tap32/tapw64/OemWin2k.inf \ + openvpn-tap32/INSTALL \ + openvpn-tap32/tap32-signed-i386-2.1.zip \ + openvpn-tap32/tap32-source-2.1.zip + +CLEANFILES = \ + $(noinst_SCRIPTS) do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g' @@ -37,11 +76,47 @@ do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g' # gnmessage.sh \ # junkinsert.sh \ # junklookup.sh \ -# namespacehelper.sh +# namespacehelper.sh check_PROGRAMS = \ test_gnunet_prefix +if ENABLE_TEST_RUN +AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH; +TESTS = $(check_PROGRAMS) +endif + test_gnunet_prefix_SOURCES = \ test_gnunet_prefix.c + +test_gnunet_prefix_CPPFLAGS = \ + $(LTDLINCL) $(AM_CPPFLAGS) + +test_gnunet_prefix_LDADD = \ + $(GCLIBADD) $(WINLIB) \ + $(LTLIBICONV) \ + $(GN_LIBINTL) \ + $(LIBLTDL) -lunistring $(XLIB) + +pkghellodir= $(pkgdatadir)/hellos + +install-data-local: + $(mkinstalldirs) $(DESTDIR)$(pkghellodir) + @$(NORMAL_INSTALL) + for hello in $(srcdir)/hellos/*; do \ + if test -f $$hello; then \ + $(INSTALL_DATA) $$hello $(DESTDIR)$(pkghellodir)/ ; \ + fi \ + done + +dist-hook: + if test -d $(srcdir)/hellos; then \ + mkdir -p $(distdir)/hellos; \ + for hello in $(srcdir)/hellos/*; do \ + if test -f $$hello; then \ + cp -p $$hello $(distdir)/hellos; \ + fi \ + done \ + fi +