Changed Makefile for managing the web server pages

This commit is contained in:
BlackLight 2010-10-08 18:18:30 +02:00
parent 6a5815f2ee
commit ee0719f239
3 changed files with 36 additions and 22 deletions

View file

@ -50,3 +50,14 @@ doc-install:
cp -r doc/* "${DOC_PREFIX}"; \ cp -r doc/* "${DOC_PREFIX}"; \
fi fi
install-data-hook:
mkdir -p "${SHARE_PREFIX}/htdocs"
mkdir -p "${SHARE_PREFIX}/htdocs/js"
install -m 0644 "${PWD}/htdocs/index.html" "${SHARE_PREFIX}/htdocs"
install -m 0755 "${PWD}/htdocs/test.cgi" "${SHARE_PREFIX}/htdocs"
install -m 0644 "${PWD}/htdocs/js/Curry-1.0.1.js" "${SHARE_PREFIX}/htdocs/js"
install -m 0644 "${PWD}/htdocs/js/dracula_algorithms.js" "${SHARE_PREFIX}/htdocs/js"
install -m 0644 "${PWD}/htdocs/js/dracula_graffle.js" "${SHARE_PREFIX}/htdocs/js"
install -m 0644 "${PWD}/htdocs/js/dracula_graph.js" "${SHARE_PREFIX}/htdocs/js"
install -m 0644 "${PWD}/htdocs/js/raphael-min.js" "${SHARE_PREFIX}/htdocs/js"
install -m 0644 "${PWD}/htdocs/js/seedrandom.js" "${SHARE_PREFIX}/htdocs/js"

View file

@ -732,7 +732,8 @@ info: info-am
info-am: info-am:
install-data-am: install-corr_rulesDATA install-shareDATA install-data-am: install-corr_rulesDATA install-shareDATA
@$(NORMAL_INSTALL)
$(MAKE) $(AM_MAKEFLAGS) install-data-hook
install-dvi: install-dvi-am install-dvi: install-dvi-am
install-dvi-am: install-dvi-am:
@ -781,7 +782,7 @@ ps-am:
uninstall-am: uninstall-corr_rulesDATA uninstall-libLTLIBRARIES \ uninstall-am: uninstall-corr_rulesDATA uninstall-libLTLIBRARIES \
uninstall-shareDATA uninstall-shareDATA
.MAKE: all check install install-am install-strip .MAKE: all check install install-am install-data-am install-strip
.PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \ .PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \
clean-generic clean-libLTLIBRARIES clean-libtool ctags dist \ clean-generic clean-libLTLIBRARIES clean-libtool ctags dist \
@ -791,15 +792,16 @@ uninstall-am: uninstall-corr_rulesDATA uninstall-libLTLIBRARIES \
distclean-tags distcleancheck distdir distuninstallcheck dvi \ distclean-tags distcleancheck distdir distuninstallcheck dvi \
dvi-am html html-am info info-am install install-am \ dvi-am html html-am info info-am install install-am \
install-corr_rulesDATA install-data install-data-am \ install-corr_rulesDATA install-data install-data-am \
install-dvi install-dvi-am install-exec install-exec-am \ install-data-hook install-dvi install-dvi-am install-exec \
install-html install-html-am install-info install-info-am \ install-exec-am install-html install-html-am install-info \
install-libLTLIBRARIES install-man install-pdf install-pdf-am \ install-info-am install-libLTLIBRARIES install-man install-pdf \
install-ps install-ps-am install-shareDATA install-strip \ install-pdf-am install-ps install-ps-am install-shareDATA \
installcheck installcheck-am installdirs maintainer-clean \ install-strip installcheck installcheck-am installdirs \
maintainer-clean-generic mostlyclean mostlyclean-compile \ maintainer-clean maintainer-clean-generic mostlyclean \
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
tags uninstall uninstall-am uninstall-corr_rulesDATA \ pdf pdf-am ps ps-am tags uninstall uninstall-am \
uninstall-libLTLIBRARIES uninstall-shareDATA uninstall-corr_rulesDATA uninstall-libLTLIBRARIES \
uninstall-shareDATA
doc: doc:
@ -813,6 +815,18 @@ doc-install:
cp -r doc/* "${DOC_PREFIX}"; \ cp -r doc/* "${DOC_PREFIX}"; \
fi fi
install-data-hook:
mkdir -p "${SHARE_PREFIX}/htdocs"
mkdir -p "${SHARE_PREFIX}/htdocs/js"
install -m 0644 "${PWD}/htdocs/index.html" "${SHARE_PREFIX}/htdocs"
install -m 0755 "${PWD}/htdocs/test.cgi" "${SHARE_PREFIX}/htdocs"
install -m 0644 "${PWD}/htdocs/js/Curry-1.0.1.js" "${SHARE_PREFIX}/htdocs/js"
install -m 0644 "${PWD}/htdocs/js/dracula_algorithms.js" "${SHARE_PREFIX}/htdocs/js"
install -m 0644 "${PWD}/htdocs/js/dracula_graffle.js" "${SHARE_PREFIX}/htdocs/js"
install -m 0644 "${PWD}/htdocs/js/dracula_graph.js" "${SHARE_PREFIX}/htdocs/js"
install -m 0644 "${PWD}/htdocs/js/raphael-min.js" "${SHARE_PREFIX}/htdocs/js"
install -m 0644 "${PWD}/htdocs/js/seedrandom.js" "${SHARE_PREFIX}/htdocs/js"
# Tell versions [3.59,3.63) of GNU make to not export all variables. # Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded. # Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT: .NOEXPORT:

View file

@ -1,11 +0,0 @@
[{
"id": 1,
"label": "test1",
"connectedTo": [
{ "id": 2 }
]
}, {
"id": 2,
"label": "test2"
}]