.PHONY: all .SUFFIXES: .jspp .js JSFILES = root/js/solardash.file.js root/js/jquery.js: wget -O $@ "https://code.jquery.com/jquery-3.4.1.min.js" # manual deps root/js/solardash.file.js: root/js/jquery.js root/js/solardash.base.js all: $(JSFILES) .jspp.js: cpp -E $< | sed -e '/^#/d' > $@ keepupdate: find . -name '*.js' -o -name '*.jspp' | entr make all