summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/reference/webhelper/Makefile.am.inc36
1 files changed, 15 insertions, 21 deletions
diff --git a/docs/reference/webhelper/Makefile.am.inc b/docs/reference/webhelper/Makefile.am.inc
index 0d99169..d4a2c05 100644
--- a/docs/reference/webhelper/Makefile.am.inc
+++ b/docs/reference/webhelper/Makefile.am.inc
@@ -6,39 +6,33 @@ docs/reference/webhelper/eos.css: docs/reference/webhelper/eos.css.in
$(AM_V_GEN)$(MKDIR_P) $(@D)
cp $< $@
+build_naturaldocs_verbose = $(build_naturaldocs_verbose_@AM_V@)
+build_naturaldocs_verbose_ = $(build_naturaldocs_verbose_@AM_DEFAULT_V@)
+build_naturaldocs_verbose_0 = @echo ' DOC Building WebHelper docs';
+
docs/reference/webhelper/html/index.html: webhelper/webhelper.js docs/reference/webhelper/eos.css
- $(MKDIR_P) $(@D)
+ $(build_naturaldocs_verbose)$(MKDIR_P) $(@D) && \
naturaldocs -i $(<D) -o HTML $(@D) -p $(@D)/.. -s Default eos -hl All
all-local: docs/reference/webhelper/html/index.html
-webhelper_docs_files = \
- docs/reference/webhelper/html/index.html \
- docs/reference/webhelper/html/files/webhelper-js.html \
- docs/reference/webhelper/html/index/Classes.html \
- docs/reference/webhelper/html/index/Functions.html \
- docs/reference/webhelper/html/index/General.html \
- docs/reference/webhelper/html/index/Properties.html \
- docs/reference/webhelper/html/javascript/main.js \
- docs/reference/webhelper/html/javascript/prettify.js \
- docs/reference/webhelper/html/javascript/searchdata.js \
- docs/reference/webhelper/html/search/*.html \
- docs/reference/webhelper/html/styles/*.css \
- $(NULL)
webhelper_extra_clean_files = \
docs/reference/webhelper/Data/*.nd \
docs/reference/webhelper/Menu.txt \
docs/reference/webhelper/Topics.txt \
docs/reference/webhelper/Languages.txt \
- docs/reference/webhelper/eos.css \
- $(NULL)
-EXTRA_DIST += \
- $(webhelper_docs_files) \
- docs/reference/webhelper/eos.css.in \
$(NULL)
-CLEANFILES += \
- $(webhelper_docs_files) \
+EXTRA_DIST += docs/reference/webhelper/eos.css.in
+CLEANFILES += docs/reference/webhelper/eos.css
+DISTCLEANFILES += \
$(webhelper_extra_clean_files) \
$(NULL)
+distclean-local:
+ @rm -rf docs/reference/webhelper/html
+
+dist-hook:
+ @mkdir -p $(distdir)/docs/reference/webhelper/html
+ @cp -r docs/reference/webhelper/html/* $(distdir)/docs/reference/webhelper/html
+
endif