LESS_SRC ?= $(wildcard *.less) LESS_GENERATED_CSS ?= $(patsubst %.less,%.css,$(LESS_SRC)) LESS_CPY ?= lesscpy include $(JWBDIR)/make/defs.mk # -- HTML PRETTIER := $(shell $(WHICH) prettier 2>/dev/null) INSTALLATION_FILE_TYPES += HTML BUILD_HTMLDIR = $(TOPDIR)/htdocs LOCAL_HTML += $(filter-out $(DONT_INSTALL),$(wildcard *.html *.css *.php *.js) $(FONTS) $(IMAGES)) DONT_LINT_HTML += $(shell $(ECHO) $(wildcard *.html) | xargs --no-run-if-empty $(GREP) -l ' $@.tmp mv $@.tmp $@ clean.lesscpy: $(RM) -f $(LESS_GENERATED_CSS) *.tmp lint: $(LOCAL_HTML_LINT) clean: lint.clean lint.clean: rm -f .*.lint .%.html.lint: %.html ifneq ($(PRETTIER),) $(PRETTIER) $< >/dev/null endif touch $@ .%.php.lint: %.php php -l $< ifneq ($(PRETTIER),) #$(PRETTIER) --parser html $< >/dev/null endif touch $@ .%.css.lint: %.css ifneq ($(PRETTIER),) $(PRETTIER) $< >/dev/null endif touch $@ .%.js.lint: %.js ifneq ($(PRETTIER),) $(PRETTIER) $< >/dev/null endif touch $@