STYLES_SOURCES = $(wildcard src/styles/*.scss) SCRIPTS_SOURCES = $(wildcard src/*.js) .PHONY: all all: scripts styles .PHONY: styles styles: $(STYLES_SOURCES) npm run build:styles .PHONY: scripts scripts: $(SCRIPTS_SOURCES) npm run build:scripts .PHONY: clean clean: rm -rf dist/ .PHONY: debug debug: @echo "STYLES_SOURCES = $(STYLES_SOURCES)" @echo "SCRIPTS_SOURCES = $(SCRIPTS_SOURCES)"