Makefile.am 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. # This Makefile.am is in the public domain
  2. AM_CPPFLAGS = -I$(top_srcdir)/src/include -I$(top_builddir)/src/include
  3. tap32dir = $(pkgdatadir)/openvpn-tap32/tapw32/
  4. tap64dir = $(pkgdatadir)/openvpn-tap32/tapw64/
  5. SUBDIRS = scripts
  6. dist_pkgdata_DATA = \
  7. gns/gns-bcd.html \
  8. gns/gns-bcd.tex \
  9. gns/def.tex \
  10. gns/gns-form-fields.xml \
  11. gns/gns-form.xslt \
  12. branding/logo/gnunet-logo.pdf \
  13. branding/logo/gnunet-logo-color.png \
  14. testing_hostkeys.ecc
  15. if MINGW
  16. tap32_DATA = \
  17. 3rdparty/Windows/openvpn-tap32/tapw32/tap0901.sys \
  18. 3rdparty/Windows/openvpn-tap32/tapw32/tap0901.cat \
  19. 3rdparty/Windows/openvpn-tap32/tapw32/OemWin2k.inf
  20. tap64_DATA = \
  21. 3rdparty/Windows/openvpn-tap32/tapw64/tap0901.sys \
  22. 3rdparty/Windows/openvpn-tap32/tapw64/tap0901.cat \
  23. 3rdparty/Windows/openvpn-tap32/tapw64/OemWin2k.inf
  24. endif
  25. INITD_FILES = \
  26. services/openrc/gnunet.initd \
  27. services/systemd/gnunet.service
  28. EXTRA_DIST = \
  29. conf/colorit/colorit.conf \
  30. conf/editors/eclipse/gnunet_codingstyle.xml \
  31. conf/gnunet/no_forcestart.conf \
  32. conf/gnunet/no_autostart_above_core.conf \
  33. conf/nss/nssswitch.conf \
  34. conf/wireshark/wireshark.lua \
  35. packages/nix/default.nix \
  36. packages/nix/gnunet-dev.nix \
  37. 3rdparty/Windows/openvpn-tap32/tapw32/tap0901.sys \
  38. 3rdparty/Windows/openvpn-tap32/tapw32/tap0901.cat \
  39. 3rdparty/Windows/openvpn-tap32/tapw32/OemWin2k.inf \
  40. 3rdparty/Windows/openvpn-tap32/tapw64/tap0901.sys \
  41. 3rdparty/Windows/openvpn-tap32/tapw64/tap0901.cat \
  42. 3rdparty/Windows/openvpn-tap32/tapw64/OemWin2k.inf \
  43. 3rdparty/Windows/openvpn-tap32/INSTALL \
  44. 3rdparty/Windows/openvpn-tap32/tap32-signed-i386-2.1.zip \
  45. 3rdparty/Windows/openvpn-tap32/tap32-source-2.1.zip \
  46. $(INITD_FILES)
  47. check_PROGRAMS = \
  48. test_gnunet_prefix
  49. if ENABLE_TEST_RUN
  50. AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
  51. TESTS = $(check_PROGRAMS)
  52. endif
  53. test_gnunet_prefix_SOURCES = \
  54. test_gnunet_prefix.c
  55. test_gnunet_prefix_CPPFLAGS = \
  56. $(LTDLINCL) $(AM_CPPFLAGS)
  57. test_gnunet_prefix_LDADD = \
  58. $(GCLIBADD) $(WINLIB) \
  59. $(LTLIBICONV) \
  60. $(GN_LIBINTL) \
  61. $(LIBLTDL) -lunistring $(XLIB)
  62. pkghellodir= $(pkgdatadir)/hellos
  63. pkginitddir= $(pkgdatadir)/services
  64. install-data-local:
  65. $(mkinstalldirs) $(DESTDIR)$(pkghellodir)
  66. @$(NORMAL_INSTALL)
  67. for hello in $(srcdir)/hellos/*; do \
  68. if test -f $$hello; then \
  69. $(INSTALL_DATA) $$hello $(DESTDIR)$(pkghellodir)/ ; \
  70. fi \
  71. done
  72. install scripts/gnunet-bugreport $(DESTDIR)$(bindir)/gnunet-bugreport
  73. mkdir -p $(DESTDIR)$(pkgdatadir)/services/openrc
  74. mkdir -p $(DESTDIR)$(pkgdatadir)/services/systemd
  75. install services/openrc/gnunet.initd $(DESTDIR)$(pkginitddir)/openrc/
  76. install services/systemd/gnunet.service $(DESTDIR)$(pkginitddir)/systemd/
  77. dist-hook:
  78. if test -d $(srcdir)/hellos; then \
  79. mkdir -p $(distdir)/hellos; \
  80. for hello in $(srcdir)/hellos/*; do \
  81. if test -f $$hello; then \
  82. cp -p $$hello $(distdir)/hellos; \
  83. fi \
  84. done \
  85. fi