[llvm-commits] CVS: llvm/docs/CommandGuide/Makefile

Reid Spencer reid at x10sys.com
Wed Dec 8 11:01:11 PST 2004



Changes in directory llvm/docs/CommandGuide:

Makefile updated: 1.8 -> 1.9
---
Log message:

Build the man and ps versions of the command guide as well when 
BUILD_FOR_WEBSITE is set.


---
Diffs of the changes:  (+20 -5)

Index: llvm/docs/CommandGuide/Makefile
diff -u llvm/docs/CommandGuide/Makefile:1.8 llvm/docs/CommandGuide/Makefile:1.9
--- llvm/docs/CommandGuide/Makefile:1.8	Tue Dec  7 22:43:40 2004
+++ llvm/docs/CommandGuide/Makefile	Wed Dec  8 13:01:01 2004
@@ -8,6 +8,7 @@
 ##===----------------------------------------------------------------------===##
 
 ifdef BUILD_FOR_WEBSITE
+
 # This special case is for keeping the CommandGuide on the LLVM web site
 # up to date automatically as the documents are checked in. It must build
 # the POD files to HTML only and keep them in the src directories. It must also
@@ -15,13 +16,27 @@
 # make -s BUILD_FOR_WEBSITE=1 inside the cvs commit script.
 
 POD  := $(wildcard *.pod)
-HTML := $(patsubst %.pod,html/%.html, $(POD))
+HTML := $(patsubst %.pod, html/%.html, $(POD))
+MAN  := $(patsubst %.pod, man/man1/%.1, $(POD))
+PS   := $(patsubst %.pod, ps/%.ps, $(POD))
 
-all: $(HTML)
+all: $(HTML) $(MAN) $(PS)
 
-html/%.html : %.pod
-	pod2html --css=manpage.css --htmlroot=. --podpath=. \
-	  --noindex --infile=$< --outfile=$@ --title=$*
+.SUFFIXES:
+.SUFFIXES: .html .pod .1 .ps
+
+html/%.html: %.pod
+	pod2html --css=manpage.css --htmlroot=. \
+	  --podpath=. --noindex --infile=$< --outfile=$@ --title=$*
+
+man/man1/%.1: %.pod
+	pod2man --release=1.4 --center="LLVM Command Guide" $< $@
+
+ps/%.ps: man/man1/%.1
+	groff -Tps -man $< > $@
+
+clean:
+	rm -f pod2htm*.*~~ $(HTML) $(MAN) $(PS)
 
 else 
 






More information about the llvm-commits mailing list