mirror of
https://github.com/NixOS/nix.git
synced 2024-11-22 06:42:28 +00:00
215b70f51e
This reverts commit f78126bfd6
. There
really is no need for such a massive change...
20 lines
398 B
Makefile
20 lines
398 B
Makefile
template-files :=
|
||
|
||
# Create the file $(1) from $(1).in by running config.status (which
|
||
# substitutes all ‘@var@’ variables set by the configure script).
|
||
define instantiate-template
|
||
|
||
clean-files += $(1)
|
||
|
||
endef
|
||
|
||
ifneq ($(MAKECMDGOALS), clean)
|
||
|
||
%.h: %.h.in
|
||
$(trace-gen) rm -f $@ && ./config.status --quiet --header=$@
|
||
|
||
%: %.in
|
||
$(trace-gen) rm -f $@ && ./config.status --quiet --file=$@
|
||
|
||
endif
|