From 961d5ba545995250c7f2ca26600c0248ac3120f9 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 11 Nov 2015 21:10:19 +0000 Subject: doc: publish examples directory to website This might improve visibility of these scripts for use with systemd. --- Makefile.am | 9 ++++++--- 1 file 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) -- cgit v1.2.3-24-ge0c7