From f0af029bd4171b3c8d612cd716a4e5bcbe65737f Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Fri, 28 May 2021 11:11:15 +0200 Subject: [PATCH] buildsys: www: make 'all' target a no-op preparatory steps for better make dependencies when executing the lint check. People can still just make the .js targets directly or use the install target. Signed-off-by: Thomas Lamprecht --- www/Makefile | 3 +-- www/manager6/Makefile | 2 +- www/mobile/Makefile | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/www/Makefile b/www/Makefile index 07fd5703d..639ad4b46 100644 --- a/www/Makefile +++ b/www/Makefile @@ -1,8 +1,7 @@ include ../defines.mk SUBDIRS = images css manager6 touch mobile -all: ${SUBDIRS} index.html.tpl - set -e && for i in ${SUBDIRS}; do ${MAKE} -C $$i $@; done +all: .PHONY: install install: diff --git a/www/manager6/Makefile b/www/manager6/Makefile index 506b5a4ea..a8842d435 100644 --- a/www/manager6/Makefile +++ b/www/manager6/Makefile @@ -274,7 +274,7 @@ JSSRC= \ Workspace.js \ # end of JSSRC list -all: pvemanagerlib.js +all: .lint-incremental: ${JSSRC} eslint $? diff --git a/www/mobile/Makefile b/www/mobile/Makefile index cd0290adc..139fed506 100644 --- a/www/mobile/Makefile +++ b/www/mobile/Makefile @@ -25,7 +25,7 @@ JSSRC= \ LXCSummary.js \ app.js -all: pvemanager-mobile.js +all: pvemanager-mobile.js: ${JSSRC} cat ${JSSRC} >$@.tmp