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
15
www/Makefile
15
www/Makefile
|
@ -59,18 +59,23 @@ OnlineHelpInfo.js:
|
||||||
$(MAKE) -C ../docs onlinehelpinfo
|
$(MAKE) -C ../docs onlinehelpinfo
|
||||||
mv ../docs/output/scanrefs/OnlineHelpInfo.js .
|
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
|
cat OnlineHelpInfo.js ${JSSRC} >$@.tmp
|
||||||
mv $@.tmp $@
|
mv $@.tmp $@
|
||||||
|
|
||||||
.PHONY: lint
|
.PHONY: check
|
||||||
lint: ${JSSRC}
|
check:
|
||||||
eslint ${JSSRC}
|
eslint ${JSSRC}
|
||||||
|
touch ".lint-incremental"
|
||||||
|
|
||||||
|
.lint-incremental: ${JSSRC}
|
||||||
|
eslint $?
|
||||||
|
touch "$@"
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
find . -name '*~' -exec rm {} ';'
|
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: js/proxmox-backup-gui.js css/ext6-pbs.css index.hbs
|
||||||
install -dm755 $(DESTDIR)$(JSDIR)
|
install -dm755 $(DESTDIR)$(JSDIR)
|
||||||
|
|
Loading…
Reference in New Issue