-support truncated HELLO names to work with 99-character per filename limitations...
[oweals/gnunet.git] / contrib / Makefile.am
index df6bdc275b9220223eaa70f96ac819d66f7a2387..d5797adb46ab55c6c2f11fabc440cf6d97da9596 100644 (file)
@@ -45,3 +45,25 @@ check_PROGRAMS = \
 
 test_gnunet_prefix_SOURCES = \
  test_gnunet_prefix.c
+
+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
+