I have in my makefile some similar rules:
include .env include .env.local var/make/.env: .env | var/make @sed \'s/=/?=/\' $< > $@ var/make/.env.