mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-21 21:46:15 +02:00
67d231c046
This reverts commit619eeb658a
, reversing changes made to1af94bf471
.
19 lines
570 B
Makefile
19 lines
570 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)
|
||
|
||
$(buildprefix)%.h: %.h.in $(buildprefix)config.status
|
||
$(trace-gen) rm -f $@ && cd $(buildprefixrel) && ./config.status --quiet --header=$(@:$(buildprefix)%=%)
|
||
|
||
$(buildprefix)%: %.in $(buildprefix)config.status
|
||
$(trace-gen) rm -f $@ && cd $(buildprefixrel) && ./config.status --quiet --file=$(@:$(buildprefix)%=%)
|
||
|
||
endif
|