chiark / gitweb /
Provide various documentation for userv-cgi in /usr/share.
[userv-utils.git] / www-cgi / Makefile
index 0449389..0246aa0 100644 (file)
@@ -22,6 +22,7 @@ include ../settings.make
 
 uslibdir=      $(libdir)/userv/cgi
 uslibcgidir=   $(uslibdir)/cgi
+usdocdir=      $(docdir)/userv-cgi
 
 TARGETS=       ucgi ucgitarget
 
@@ -43,6 +44,11 @@ install:     all
 install-examples:
 
 install-docs:
+               mkdir -p $(usdocdir)/examples
+               cp INSTALL $(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