diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-12-08 19:01:01 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-12-08 19:01:01 +0000 |
commit | 0601d01f43e78bc38ec803762dfb24302c7898d1 (patch) | |
tree | c1d33f7b0e5bb1d1d27e3468f9835ede4741d1d1 /llvm/docs/CommandGuide | |
parent | 923737fcff87f01c2f4a8d80c192eba3ba464bdb (diff) | |
download | bcm5719-llvm-0601d01f43e78bc38ec803762dfb24302c7898d1.tar.gz bcm5719-llvm-0601d01f43e78bc38ec803762dfb24302c7898d1.zip |
Build the man and ps versions of the command guide as well when
BUILD_FOR_WEBSITE is set.
llvm-svn: 18653
Diffstat (limited to 'llvm/docs/CommandGuide')
-rw-r--r-- | llvm/docs/CommandGuide/Makefile | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/llvm/docs/CommandGuide/Makefile b/llvm/docs/CommandGuide/Makefile index ee5834cda7d..51088d397d5 100644 --- a/llvm/docs/CommandGuide/Makefile +++ b/llvm/docs/CommandGuide/Makefile @@ -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 @@ ifdef BUILD_FOR_WEBSITE # 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 |