Makefile target to build all matching files at once -


we have 2 targets building of our js, 1 takes full list of files , passes off transpile script , other takes changed file , passes off transpile script. issue if have n changed files, executes matching target 1 @ time each file.

the current targets:

.phony: build-all build-all:     file_list="$(rawjsfiles)" ./scripts/transpile.js  $(build)/app/%.js: $(src)/app/%.js     file_list="$(src)/app/$*.js" ./scripts/transpile.js 

is possible target matching changed files can passed transpile script executed once? thanks!

you don't how want work, , i'm not familiar javascript hacking or "transpile" can't guess.

but if want target runs script on files have been changed since last time run, can use like:

allfiles := $(wildcard $(src)/app/*.js  build-all: $(allfiles)         file_list="$?" ./scripts/transpile.js         @touch $@ 

see automatic variables discussion of $?.

there issues this, since problem wasn't well-defined it's not clear whether they'll affect you.


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -