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