chiark / gitweb /
Make deprecated things not built by default by Makefile (and remove code in debian...
[userv-utils.git] / www-cgi / Makefile
index 0449389c5531f7dcccfb1d8a4e23003400df3f92..52c1cb8e257a1c17c3078f30b8bdfb84389acb5c 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 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