summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--OMakefile8
-rw-r--r--OMakeroot5
2 files changed, 10 insertions, 3 deletions
diff --git a/OMakefile b/OMakefile
index 2fabca5..00955a3 100644
--- a/OMakefile
+++ b/OMakefile
@@ -1,4 +1,4 @@
-.PHONY: all install clean nuke buildenv ctan ctan-root tds tds-hier usage
+.PHONY: all install clean nuke buildenv ctan ctan-root tds tds-hier usage doc
name = rst
@@ -29,6 +29,7 @@ doc_tree = $(build_root)/doc/context/third/$(name)
tex_tree = $(build_root)/tex/context/third/$(name)
script_tree = $(build_root)/scripts/context/lua/third/$(name)
ctan_root = $(build_root)/$(name)
+doc_tmpdir = $(build_root)/doc-tmp
tds_hier[] = $(doc_tree) $(tex_tree) $(script_tree)
tds_dirnames[] = doc scripts tex
tds_dirs[] = $(addprefix $(build_root)/,$(tds_dirnames))
@@ -77,7 +78,7 @@ nuke:
$(rm -rf -- $(build_root) $(pkgs))
## clean -- leave the build directory, documentation and tarballs intact
-clean:
+clean: .PHONY/$(doc_tmpdir)/clean
$(rm -rf -- $(tds_dirs) $(ctan_root))
## tds -- package according to TeX directory structure
@@ -86,6 +87,9 @@ tds: $(tds_zip)
## ctan -- package for CTAN upload
ctan: $(ctan_zip)
+## PDF documentation
+doc: .PHONY/$(doc_tmpdir)/manual
+
$(tds_zip): tds-hier
$(echo $(name)> packaging as $@ with TDS directories)
cp($(lua_src) $(tex_tree))
diff --git a/OMakeroot b/OMakeroot
index 8addc9e..123fdd6 100644
--- a/OMakeroot
+++ b/OMakeroot
@@ -6,4 +6,7 @@ DefineCommandVars()
#
# Include the OMakefile in this directory.
#
-.SUBDIRS: .
+CREATE_SUBDIRS = true
+vmount(-l, doc, build/doc-tmp)
+.SUBDIRS: . build/doc-tmp
+