Add missing Makefiles
authorng0 <ng0@n0.is>
Sat, 6 Apr 2019 15:35:56 +0000 (15:35 +0000)
committerng0 <ng0@n0.is>
Sat, 6 Apr 2019 15:35:56 +0000 (15:35 +0000)
contrib/hellos/Makefile.am [new file with mode: 0644]
contrib/services/Makefile.am [new file with mode: 0644]
contrib/services/openrc/Makefile.am [new file with mode: 0644]
contrib/services/systemd/Makefile.am [new file with mode: 0644]

diff --git a/contrib/hellos/Makefile.am b/contrib/hellos/Makefile.am
new file mode 100644 (file)
index 0000000..18a6458
--- /dev/null
@@ -0,0 +1,22 @@
+# This Makefile.am is in the public domain
+
+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
diff --git a/contrib/services/Makefile.am b/contrib/services/Makefile.am
new file mode 100644 (file)
index 0000000..eb4bd7d
--- /dev/null
@@ -0,0 +1 @@
+SUBDIRS = openrc systemd
diff --git a/contrib/services/openrc/Makefile.am b/contrib/services/openrc/Makefile.am
new file mode 100644 (file)
index 0000000..a028543
--- /dev/null
@@ -0,0 +1,6 @@
+pkginitddir= $(pkgdatadir)/services/openrc
+
+install-data-local:
+       $(mkinstalldirs) $(DESTDIR)$(pkginitdir)
+       @$(NORMAL_INSTALL)
+    $(INSTALL_DATA) gnunet.initd $(DESTDIR)$(pkginitdir)
diff --git a/contrib/services/systemd/Makefile.am b/contrib/services/systemd/Makefile.am
new file mode 100644 (file)
index 0000000..7120f6f
--- /dev/null
@@ -0,0 +1,6 @@
+pkginitddir= $(pkgdatadir)/services/systemd
+
+install-data-local:
+       $(mkinstalldirs) $(DESTDIR)$(pkginitdir)
+       @$(NORMAL_INSTALL)
+    $(INSTALL_DATA) gnunet.service $(DESTDIR)$(pkginitdir)