chiark / gitweb /
Build system: Provide `web-install' target
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 20 Oct 2014 00:24:22 +0000 (01:24 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 20 Oct 2014 00:26:44 +0000 (01:26 +0100)
This copies the various website files to WEBDIR.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
.gitignore
Makefile.in
README.html

index 05e7a36de7451e04f8da6e2d00ae50b4017bc778..17f31db8d6388b2b49f96a4a389ad37f78feb5e5 100644 (file)
@@ -36,3 +36,4 @@ regress/pipe.out
 regress/pipe.err
 src/Makefile
 src/config.h
+web
index 2acc8f36288f2ee375461dd669391e2dd507ea6e..3fdee94e44b6e8a53dc830243bc7eec73ef75411 100644 (file)
@@ -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
 
index 1eeee0bc1a3a2090604c86ecca0af5154663ab27..fd594982bbd4760ffd275b8e9bc2a41de1500dfa 100644 (file)
@@ -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
-<A href="http://www.chiark.greenend.org.uk/~ian/adns/adnshost.txt">adnshost
+<A href="adnshost.txt">adnshost
 usage message</A> for a summary of its capabilities.
 
 </ul>
@@ -97,7 +97,7 @@ usage message</A> 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
-<A href="http://www.chiark.greenend.org.uk/~ian/adns/adns.h.txt">commented
+<A href="adns.h.txt">commented
 adns.h header file</A>, and the usage messages for the programs should
 be sufficient.
 
@@ -141,9 +141,9 @@ containing the word `subscribe' to
 <h2>Documentation</h2>
 
 <ul>
-<li><A href="http://www.chiark.greenend.org.uk/~ian/adns/adns.h.txt">adns.h
+<li><A href="adns.h.txt">adns.h
     API header file with documentation comments</A>
-<li><A href="http://www.chiark.greenend.org.uk/~ian/adns/adnshost.txt">usage
+<li><A href="adnshost.txt">usage
     message for adnshost</A>
 </ul>
 
@@ -207,7 +207,7 @@ This program and documentation is distributed in the hope that it will
 be useful, but <em>without any warranty</em>; without even the implied
 warranty of <em>merchantability</em> or <em>fitness for a particular
 purpose</em>.  See the
-<A href="http://www.chiark.greenend.org.uk/~ian/COPYING.txt">GNU
+<A href="COPYING.txt">GNU
 General Public License</A> for more details.
 
 <p>