summaryrefslogtreecommitdiff
path: root/OMakefile
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2014-03-02 10:37:07 +0100
committerPhilipp Gesang <phg@phi-gamma.net>2014-03-02 10:37:07 +0100
commitbf8136fd24b955cef8904dc7d7a7eac1f3d2d2c3 (patch)
tree5c47cb3081be05bae704f6a28333a5829231aec2 /OMakefile
parente3a5a3296041d8868ab1f3ccea905a36f6b03e34 (diff)
downloadcontext-rst-bf8136fd24b955cef8904dc7d7a7eac1f3d2d2c3.tar.gz
handle documentation subdir from omake
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))