From 6554806b8b0e27765705f0e44fd6d0503862079f Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 20 Oct 2014 01:24:22 +0100 Subject: [PATCH] Build system: Provide `web-install' target This copies the various website files to WEBDIR. Signed-off-by: Ian Jackson --- .gitignore | 1 + Makefile.in | 9 +++++++++ README.html | 10 +++++----- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 05e7a36..17f31db 100644 --- a/.gitignore +++ b/.gitignore @@ -36,3 +36,4 @@ regress/pipe.out regress/pipe.err src/Makefile src/config.h +web diff --git a/Makefile.in b/Makefile.in index 2acc8f3..3fdee94 100644 --- a/Makefile.in +++ b/Makefile.in @@ -36,6 +36,8 @@ else SUBDIRS_DYNAMIC= endif +WEBDIR=web + SUBDIRS= src $(SUBDIRS_DYNAMIC) client regress all install uninstall clean distclean mostlyclean maintainer-clean distprep: @@ -70,6 +72,13 @@ dist: distprep adnshost.txt: all client/adnshost_s --help >$@.tmp && mv -f $@.tmp $@ +web-install: adnshost.txt + test -e $(WEBDIR) || mkdir $(WEBDIR) + $(INSTALL_DATA) $(srcdir)/README.html $(WEBDIR)/index.html + $(INSTALL_DATA) $(srcdir)/src/adns.h $(WEBDIR)/adns.h.txt + $(INSTALL_DATA) COPYING $(WEBDIR)/COPYING.txt + $(INSTALL_DATA) adnshost.txt $(WEBDIR)/ + check: all $(MAKE) -C regress check diff --git a/README.html b/README.html index 1eeee0b..fd59498 100644 --- a/README.html +++ b/README.html @@ -88,7 +88,7 @@ which can be used easily in from the command line and from shell scripts to do simple lookups. In a more advanced mode it can be used as a general-purpose DNS helper program for scripting languages which can invoke and communicate with subprocesses. See the -adnshost +adnshost usage message for a summary of its capabilities. @@ -97,7 +97,7 @@ usage message for a summary of its capabilities. I'm afraid there is no manual yet. However, competent C programmers should be able to use the library based on the -commented +commented adns.h header file, and the usage messages for the programs should be sufficient. @@ -141,9 +141,9 @@ containing the word `subscribe' to

Documentation

@@ -207,7 +207,7 @@ This program and documentation is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose. See the -GNU +GNU General Public License for more details.

-- 2.11.0