aboutsummaryrefslogtreecommitdiff
path: root/docs/CommandGuide/Makefile
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2004-05-14 19:50:33 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2004-05-14 19:50:33 +0000
commite993d20630de4c40eaa3dcca3da92d186c751d58 (patch)
treed9a9abb63d2561b8099e04e74e9f0bf85e83ad51 /docs/CommandGuide/Makefile
parent3c687a0925872f81e8c95641aa0d5097a5caaeae (diff)
More pods... work in progress
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13574 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/CommandGuide/Makefile')
-rw-r--r--docs/CommandGuide/Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/docs/CommandGuide/Makefile b/docs/CommandGuide/Makefile
new file mode 100644
index 0000000000..730718b0a5
--- /dev/null
+++ b/docs/CommandGuide/Makefile
@@ -0,0 +1,23 @@
+POD = $(wildcard *.pod)
+HTML = $(patsubst %.pod, %.html, $(POD))
+MAN = $(patsubst %.pod, %.1, $(POD))
+PS = $(patsubst %.pod, %.ps, $(POD))
+
+all: $(HTML) $(MAN) $(PS)
+
+.SUFFIXES:
+.SUFFIXES: .html .pod .1 .ps
+
+%.html: %.pod
+ pod2html --css=http://www.perldoc.com/css/perldoc.css \
+ --podpath=/`pwd` --noindex --infile=$< --outfile=$@
+
+%.1: %.pod
+ pod2man --release=1.3 --center="LLVM User's Guide" $< $@
+
+%.ps: %.1
+ groff -Tps -man $< > $@
+
+clean:
+ rm -f pod2htm*.*~~ $(HTML) $(MAN) $(PS)
+