[Box Backup-commit] COMMIT r2150 - box/trunk/documentation

boxbackup-dev at fluffy.co.uk boxbackup-dev at fluffy.co.uk
Tue Apr 29 00:46:42 BST 2008


Author: chris
Date: 2008-04-28 23:46:41 +0000 (Mon, 28 Apr 2008)
New Revision: 2150

Modified:
   box/trunk/documentation/Makefile
Log:
Fix Makefile for BSD (and hopefully any POSIX) make.


Modified: box/trunk/documentation/Makefile
===================================================================
--- box/trunk/documentation/Makefile	2008-04-18 20:32:04 UTC (rev 2149)
+++ box/trunk/documentation/Makefile	2008-04-28 23:46:41 UTC (rev 2150)
@@ -2,13 +2,13 @@
 
 # Process DocBook to HTML
 
-DBPROC=/usr/bin/xsltproc
+DBPROC=xsltproc
 BOOKXSL=bb-book.xsl
 NOCHUNKBOOKXSL=bb-nochunk-book.xsl
 MANXSL=bb-man.xsl
 HTMLPREFIX=box-html
 VPATH= adminguide
-.SUFFIXES: .html .xml
+.SUFFIXES: .html .xml .1 .5 .8
 
 all: docs
 
@@ -28,7 +28,7 @@
 $(HTMLPREFIX)/instguide/index.html: instguide.xml $(BOOKXSL)
 	$(DBPROC) -o $(HTMLPREFIX)/instguide/ $(BOOKXSL) instguide.xml
 
-ExceptionCodes.xml: ../../ExceptionCodes.txt
+ExceptionCodes.xml: ../ExceptionCodes.txt
 	perl ./generate_except_xml.pl
 
 manpages: man-dirs man-nroff man-html
@@ -41,19 +41,36 @@
 man-pages/.there:
 	if [ ! -d man-pages ]; then mkdir man-pages; touch man-pages/.there; fi
 
-man-nroff: bbackupquery.1 bbackupctl.1 bbstoreaccounts.1 bbstored-config.1 raidfile-config.1 bbstored-certs.1
+man-nroff: bbackupquery.8 bbackupctl.8 bbstoreaccounts.8 bbstored-config.8 \
+	raidfile-config.8 bbstored-certs.8
 
-man-html: bbackupquery.html bbackupctl.html bbstoreaccounts.html bbstored-config.html raidfile-config.html bbstored-certs.html
+man-html: bbackupquery.html bbackupctl.html bbstoreaccounts.html \
+	bbstored-config.html raidfile-config.html bbstored-certs.html
 
-%.html: %.xml
+# for BSD make:
+.xml.html:
 	$(DBPROC) -o $@ $(NOCHUNKBOOKXSL) $<
-	mv $@ $(HTMLPREFIX)/man-html/.
+	cp $@ $(HTMLPREFIX)/man-html/.
 
-%.1: %.xml
-	$(DBPROC) -o $@ $(MANXSL) $<
-	mv $@ man-pages/.
-	gzip -f -9 man-pages/$@
+# for GNU make:
+#%.html: %.xml
+#	$(DBPROC) -o $@ $(NOCHUNKBOOKXSL) $<
+#	mv $@ $(HTMLPREFIX)/man-html/.
 
+# for BSD make:
+.xml.8:
+	$(DBPROC) -o $(.TARGET) $(MANXSL) $(.IMPSRC)
+	cp $(.TARGET) man-pages/
+	rm -f man-pages/$(.TARGET).gz
+	gzip -f -9 man-pages/$(.TARGET)
+
+# for GNU make:
+#%.8: %.xml
+#	$(DBPROC) -o $@ $(MANXSL) $<
+#	cp $@ man-pages/
+#	rm -f man-pages/$@.gz
+#	gzip -f -9 man-pages/$@
+
 dockit: clean docs
 	tar zcf documentation-kit-0.10.tar.gz $(HTMLPREFIX)/
 




More information about the Boxbackup-commit mailing list