diff options
author | Andrew Shadura <andrew.shadura@collabora.co.uk> | 2015-12-14 20:57:36 +0100 |
---|---|---|
committer | Andrew Shadura <andrew.shadura@collabora.co.uk> | 2015-12-14 20:57:36 +0100 |
commit | 38a56a963bff6b612f4a3f96c53fac8492e40eea (patch) | |
tree | 221578f82fa010f53358d963995f7f29182c3ba7 /doc/Makefile.am |
Imported Upstream version 12.10.0
Diffstat (limited to 'doc/Makefile.am')
-rw-r--r-- | doc/Makefile.am | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am new file mode 100644 index 0000000..6f9fc80 --- /dev/null +++ b/doc/Makefile.am @@ -0,0 +1,43 @@ +if ENABLE_MONODOC +TARGETS = $(ASSEMBLY_NAME)-docs.source $(ASSEMBLY_NAME)-docs.zip $(ASSEMBLY_NAME)-docs.tree +docsdir = $(prefix)/lib/monodoc/sources +docs_DATA = $(TARGETS) +else +TARGETS = +docsdir = $(datadir) +docs_DATA = +endif + +ASSEMBLIES = $(top_srcdir)/out/$(ASSEMBLY_NAME).dll + +UPDATE_ASSEMBLIES = $(addprefix -assembly:, $(ASSEMBLIES)) + +all: $(TARGETS) + +update: + $(MONODOCER) $(UPDATE_ASSEMBLIES) -path:en + +$(srcdir)/en/*/*.xml $(srcdir)/en/*.xml: + $(MONODOCER) $(UPDATE_ASSEMBLIES) -path:en + +$(ASSEMBLY_NAME)-docs.source: + @echo "Generating $@" + @echo "<?xml version=\"1.0\"?>" > $@ + @echo "<monodoc>" >> $@ + @echo " <source provider=\"ecma\" basefile=\"$(ASSEMBLY_NAME)-docs\" path=\"classlib-$(ASSEMBLY_SHORTNAME)\"/>" >> $@ + @echo "</monodoc>" >> $@ + +$(ASSEMBLY_NAME)-docs.zip $(ASSEMBLY_NAME)-docs.tree: $(srcdir)/en/*/*.xml $(srcdir)/en/*.xml + $(MDASSEMBLER) --ecma $(srcdir)/en -o $(ASSEMBLY_NAME)-docs + +CLEANFILES = $(TARGETS) + +NAMESPACES=$(ASSEMBLY_NAMESPACE) + +dist-hook: + mkdir -p $(distdir)/en + cp $(srcdir)/en/*.xml $(distdir)/en/ + for i in $(NAMESPACES); do \ + mkdir -p $(distdir)/en/$$i; \ + cp $(srcdir)/en/$$i/*.xml $(distdir)/en/$$i; \ + done |