summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattdangerw <mattdangerw@gmail.com>2013-09-30 18:52:27 -0700
committermattdangerw <mattdangerw@gmail.com>2013-09-30 18:52:27 -0700
commite17e7600545cfdfa5da41a3dba6cb31292e77e96 (patch)
tree1a7a9fa8830f110bf0f5ea82cfb7e250ea7f2ae2
parent406f72024666260471bef2a3abc91bcc44e254b9 (diff)
parent685bfb9c42f2aecd06aa3a24ef79898b722c073a (diff)
Merge pull request #319 from endlessm/issues/318
Fix make distcheck
-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