chiark / gitweb /
debian/: Improve dyndns description a bit
[userv-utils.git] / www-cgi / Makefile
index 0449389c5531f7dcccfb1d8a4e23003400df3f92..6e969d62bbbd3909e9dd1ae4c10cedba707e03f3 100644 (file)
@@ -1,8 +1,9 @@
-# Copyright 1996-2013 Ian Jackson <ijackson@chiark.greenend.org.uk>
+# Copyright 1996-2013,2016 Ian Jackson <ijackson@chiark.greenend.org.uk>
 # Copyright 1998 David Damerell <damerell@chiark.greenend.org.uk>
 # Copyright 1999,2003
 #    Chancellor Masters and Scholars of the University of Cambridge
 # Copyright 2010 Tony Finch <fanf@dotat.at>
+# Copyright 2013,2016 Mark Wooding <mdw@distorted.org.uk>
 #
 # This is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by
@@ -22,6 +23,7 @@ include ../settings.make
 
 uslibdir=      $(libdir)/userv/cgi
 uslibcgidir=   $(uslibdir)/cgi
+usdocdir=      $(docdir)/userv-cgi
 
 TARGETS=       ucgi ucgitarget
 
@@ -43,6 +45,11 @@ install:     all
 install-examples:
 
 install-docs:
+               mkdir -p $(usdocdir)/examples
+               cp INSTALL README.custom-env-filter $(usdocdir)/.
+               cp srm.conf.fragment $(usdocdir)/examples/.
+               sed -e 's#/usr/local#$(prefix)#' user-cgi.text \
+                       >$(usdocdir)/userv-cgi.text
 
 clean distclean realclean:
                rm -f $(TARGETS) *.o