1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2024-09-19 10:50:24 -04:00
nix/mk/templates.mk

20 lines
398 B
Makefile
Raw Normal View History

2014-02-01 06:20:06 -05:00
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
2014-02-01 06:20:06 -05:00
clean-files += $(1)
endef
ifneq ($(MAKECMDGOALS), clean)
2014-08-20 12:39:48 -04:00
%.h: %.h.in
2014-08-20 12:44:15 -04:00
$(trace-gen) rm -f $@ && ./config.status --quiet --header=$@
2014-08-20 12:39:48 -04:00
%: %.in
2014-08-20 12:44:15 -04:00
$(trace-gen) rm -f $@ && ./config.status --quiet --file=$@
endif