about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-11-11 21:10:19 +0000
committerEric Wong <e@80x24.org>2015-11-11 21:10:40 +0000
commit961d5ba545995250c7f2ca26600c0248ac3120f9 (patch)
treed8a949c14fb83117657d080a204627a5fc9813f3
parent23123554d4bf85246aeb80bc837fd94add5b4269 (diff)
downloadcmogstored-961d5ba545995250c7f2ca26600c0248ac3120f9.tar.gz
This might improve visibility of these scripts for use with systemd.
-rw-r--r--Makefile.am9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am
index dc49d26..f78ff76 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -201,11 +201,13 @@ WWW_DOC = README AUTHORS NEWS.atom.xml INSTALL $(extra_doc)
 NEWS.atom.xml: configure.ac
         $(AM_V_GEN)$(RAKE) -sq news_atom > $@.$$$$ && mv $@.$$$$ $@
 publish: NEWS.atom.xml NEWS ChangeLog
-        mkdir -p www/
+        mkdir -p www/examples/
 # n.b. git set-file-times is non-standard, but distributed with rsync
         -cd $(top_srcdir) && git set-file-times $(WWW_DOC)
         $(INSTALL_DATA) -p $(addprefix $(top_srcdir)/,$(WWW_DOC)) www/
-        set -e && cd www && for i in $(WWW_DOC); do \
+        $(INSTALL_DATA) -p $(addprefix $(top_srcdir)/,$(examples)) \
+                www/examples/
+        set -e && cd www && for i in $(WWW_DOC) $(examples); do \
                 $(GZIP) < $$i > $$i.gz; \
                 test -s $$i.gz; \
                 touch -r $$i $$i.gz; \
@@ -215,6 +217,7 @@ publish: NEWS.atom.xml NEWS ChangeLog
 .PHONY: publish
 
 tap_support = tapset/all.stp tapset/http_access_log.gawk tapset/ioq_wait.awk
+examples := examples/cmogstored.socket examples/cmogstored@.service
 
 EXTRA_DIST = $(RB_TESTS) $(RL_CGEN) $(RL_ALL) $(PERL_TESTS) $(extra_doc) \
   .gitignore Rakefile autogen.sh GNUmakefile bsd/README doc m4 \
@@ -226,7 +229,7 @@ EXTRA_DIST = $(RB_TESTS) $(RL_CGEN) $(RL_ALL) $(PERL_TESTS) $(extra_doc) \
   $(top_srcdir)/.version $(top_srcdir)/.gnulib-version \
   test/valgrind.supp nostd/README \
   $(tap_support) \
-  examples/cmogstored.socket examples/cmogstored@.service
+  $(examples)
 
 TESTS_ENVIRONMENT = PATH=$(top_builddir):$$PATH TMPDIR=$(test_tmpdir)