move homebrew.
[oweals/gnunet.git] / contrib / Makefile.am
index d3be84d6cc285abd21cddff93bac6910a6522233..c7b203989818d24af629982d65eb4a0f82dac0ee 100644 (file)
@@ -1,87 +1,70 @@
-INCLUDES = -I$(top_srcdir)/src/include -I$(top_builddir)/src/include
+# This Makefile.am is in the public domain
+AM_CPPFLAGS = -I$(top_srcdir)/src/include -I$(top_builddir)/src/include
 
-
-noinst_PROGRAMS = \
- timeout_watchdog
-
-if !MINGW
-timeout_watchdog_SOURCES = \
- 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
+SUBDIRS = scripts hellos services
 
 dist_pkgdata_DATA = \
- gnunet-logo-color.png \
- testing_hostkeys.dat \
+ gns/gns-bcd.html \
+ gns/gns-bcd.tex \
+ gns/def.tex \
+ gns/gns-form-fields.xml \
+ gns/gns-form.xslt \
+ branding/logo/gnunet-logo.pdf \
+ branding/logo/gnunet-logo-color.png \
  testing_hostkeys.ecc
 
-EXTRA_DIST = \
coverage.sh \
- report.sh \
- terminate.py.in \
- gnunet_pyexpect.py.in \
gnunet_janitor.py.in \
pydiffer.py.in \
- gnunet-gns-import.sh
-
-do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
-
-%.py: %.py.in Makefile
-       $(do_subst) < $< > $@
-       chmod +x $@
-
-# init_gnunet_redhat \
-# init_gnunet_ubuntu \
-# visualize_stats.sh \
-# gnmessage.sh \
-# junkinsert.sh \
-# junklookup.sh \
-# namespacehelper.sh 
+INITD_FILES = \
services/openrc/gnunet.initd \
+ services/systemd/gnunet.service
+
+PACKAGES_FILES = \
   packages/guix/guix-env-py2.scm \
   packages/guix/guix-env-gillmann.scm \
+    packages/guix/notest-guix-env.scm \
+    packages/homebrew/gnunet.rb \
+    packages/nix/gnunet-dev.nix \
+    packages/nix/default.nix \
+    packages/alpine/gnunet-gtk/APKBUILD \
+    packages/alpine/gnunet/APKBUILD \
+    packages/alpine/gnunet/gnunet-system-services.initd \
+    packages/alpine/gnunet/gnunet-system.conf \
+    packages/alpine/gnunet/gnunet-user-services.initd \
+    packages/alpine/gnunet/gnunet-user.conf \
+    packages/alpine/gnunet/gnunet.post-install \
+    packages/alpine/gnunet/gnunet.pre-deinstall \
+    packages/alpine/gnunet/gnunet.pre-install \
+    packages/alpine/gnunet/gnunet.xsession \
+    packages/alpine/gnurl/APKBUILD
 
+EXTRA_DIST = \
+ conf/colorit/colorit.conf \
+ conf/.style.yapf \
+ conf/editors/eclipse/gnunet_codingstyle.xml \
+ conf/gnunet/no_forcestart.conf \
+ conf/gnunet/no_autostart_above_core.conf \
+ conf/gnunet/gnunet-system.conf \
+ conf/gnunet/gnunet-user.conf \
+ conf/nss/nssswitch.conf \
+ conf/wireshark/wireshark.lua \
+ $(PACKAGES_FILES) \
+ $(INITD_FILES)
 
 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;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
 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) \
-  -lltdl -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
-
+  $(LIBLTDL) -lunistring $(XLIB)