www: do incremental lint for development, full for build
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
5ad4bdc482
commit
5637087cc9
13
www/Makefile
13
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
|
||||
rm -rf js .lint-incremental
|
||||
|
||||
install: js/proxmox-backup-gui.js css/ext6-pbs.css index.hbs
|
||||
install -dm755 $(DESTDIR)$(JSDIR)
|
||||
|
|
Loading…
Reference in New Issue