summaryrefslogtreecommitdiff
path: root/OMakefile
diff options
context:
space:
mode:
Diffstat (limited to 'OMakefile')
-rw-r--r--OMakefile8
1 files changed, 6 insertions, 2 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))