From 5637087cc985f7493b8a5c92e0a1c8a22cb2d065 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 1 Oct 2020 13:12:44 +0200 Subject: [PATCH] www: do incremental lint for development, full for build Signed-off-by: Thomas Lamprecht --- www/Makefile | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/www/Makefile b/www/Makefile index 90a98b74..8e1ebbfc 100644 --- a/www/Makefile +++ b/www/Makefile @@ -59,18 +59,23 @@ OnlineHelpInfo.js: $(MAKE) -C ../docs onlinehelpinfo mv ../docs/output/scanrefs/OnlineHelpInfo.js . -js/proxmox-backup-gui.js: js OnlineHelpInfo.js ${JSSRC} +js/proxmox-backup-gui.js: .lint-incremental js OnlineHelpInfo.js ${JSSRC} cat OnlineHelpInfo.js ${JSSRC} >$@.tmp mv $@.tmp $@ -.PHONY: lint -lint: ${JSSRC} +.PHONY: check +check: eslint ${JSSRC} + touch ".lint-incremental" + +.lint-incremental: ${JSSRC} + eslint $? + touch "$@" .PHONY: clean clean: - find . -name '*~' -exec rm {} ';' - rm -rf js + find . -name '*~' -exec rm {} ';' + rm -rf js .lint-incremental install: js/proxmox-backup-gui.js css/ext6-pbs.css index.hbs install -dm755 $(DESTDIR)$(JSDIR)