[llvm-commits] CVS: llvm/docs/CommandGuide/Makefile
Reid Spencer
reid at x10sys.com
Tue Dec 7 20:43:50 PST 2004
Changes in directory llvm/docs/CommandGuide:
Makefile updated: 1.7 -> 1.8
---
Log message:
Make an alternate version of this Makefile that can be used in an
unconfigured tree for rebuilding the html files from POD sources for the
website update on cvs commit.
---
Diffs of the changes: (+20 -0)
Index: llvm/docs/CommandGuide/Makefile
diff -u llvm/docs/CommandGuide/Makefile:1.7 llvm/docs/CommandGuide/Makefile:1.8
--- llvm/docs/CommandGuide/Makefile:1.7 Mon Nov 29 08:46:29 2004
+++ llvm/docs/CommandGuide/Makefile Tue Dec 7 22:43:40 2004
@@ -7,6 +7,24 @@
#
##===----------------------------------------------------------------------===##
+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
+# build in an unconfigured tree, hence the ifdef. To use this, run
+# make -s BUILD_FOR_WEBSITE=1 inside the cvs commit script.
+
+POD := $(wildcard *.pod)
+HTML := $(patsubst %.pod,html/%.html, $(POD))
+
+all: $(HTML)
+
+html/%.html : %.pod
+ pod2html --css=manpage.css --htmlroot=. --podpath=. \
+ --noindex --infile=$< --outfile=$@ --title=$*
+
+else
+
LEVEL := ../..
include $(LEVEL)/Makefile.common
@@ -62,3 +80,5 @@
printvars::
$(Echo) "POD : " '$(POD)'
$(Echo) "HTML : " '$(HTML)'
+
+endif
More information about the llvm-commits
mailing list