SUBDIRS= css images
+# bundle it for now from the libjs-marked debian package to avoid touching our proxies file mapper,
+# we could also just ship a link to the packages file and load from same path as the widget-toolkit
+MARKEDJS=/usr/share/javascript/marked/marked.min.js
+
JSSRC= \
Utils.js \
Toolkit.js \
Logo.js \
+ Parser.js \
mixin/CBind.js \
data/reader/JsonObject.js \
data/ProxmoxProxy.js \
panel/ACMEAccount.js \
panel/ACMEPlugin.js \
panel/ACMEDomains.js \
+ panel/StatusView.js \
window/Edit.js \
window/PasswordEdit.js \
window/SafeDestroy.js \
window/ACMEAccount.js \
window/ACMEPluginEdit.js \
window/ACMEDomains.js \
+ window/FileBrowser.js \
node/APT.js \
+ node/APTRepositories.js \
node/NetworkEdit.js \
node/NetworkView.js \
node/DNSEdit.js \
.PHONY: lint
check: lint
+ eslint --strict api-viewer/APIViewer.js
lint: ${JSSRC}
eslint --strict ${JSSRC}
+ touch ".lint-incremental"
proxmoxlib.js: .lint-incremental ${JSSRC}
# add the version as comment in the file
echo "// ${DEB_VERSION_UPSTREAM_REVISION}" > $@.tmp
- cat ${JSSRC} >> $@.tmp
+ cat ${JSSRC} ${MARKEDJS} >> $@.tmp
mv $@.tmp $@
install: proxmoxlib.js