mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-23 06:26:15 +02:00
52e0911302
`installcheck` doesn't yet work, but the rest of the build can now happen mostly inside a separate build directory. Progress on #9342 Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
19 lines
514 B
Makefile
19 lines
514 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
|
||
$(trace-gen) rm -f $@ && cd $(buildprefixrel) && ./config.status --quiet --header=$(@:$(buildprefix)%=%)
|
||
|
||
$(buildprefix)%: %.in
|
||
$(trace-gen) rm -f $@ && cd $(buildprefixrel) && ./config.status --quiet --file=$(@:$(buildprefix)%=%)
|
||
|
||
endif
|