2014-02-01 06:20:06 -05:00
|
|
|
|
template-files :=
|
2014-01-09 10:57:38 -05:00
|
|
|
|
|
2013-12-10 09:54:34 -05:00
|
|
|
|
# Create the file $(1) from $(1).in by running config.status (which
|
2016-11-25 18:37:43 -05:00
|
|
|
|
# substitutes all ‘@var@’ variables set by the configure script).
|
2014-02-04 05:02:49 -05:00
|
|
|
|
define instantiate-template
|
2013-12-10 09:54:34 -05:00
|
|
|
|
|
2014-02-01 06:20:06 -05:00
|
|
|
|
clean-files += $(1)
|
2013-12-10 09:54:34 -05:00
|
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
2014-09-05 06:08:06 -04:00
|
|
|
|
ifneq ($(MAKECMDGOALS), clean)
|
|
|
|
|
|
2024-02-07 09:41:10 -05:00
|
|
|
|
$(buildprefix)%.h: %.h.in $(buildprefix)config.status
|
2023-11-25 00:33:21 -05:00
|
|
|
|
$(trace-gen) rm -f $@ && cd $(buildprefixrel) && ./config.status --quiet --header=$(@:$(buildprefix)%=%)
|
2014-08-20 12:39:48 -04:00
|
|
|
|
|
2024-02-07 09:41:10 -05:00
|
|
|
|
$(buildprefix)%: %.in $(buildprefix)config.status
|
2023-11-25 00:33:21 -05:00
|
|
|
|
$(trace-gen) rm -f $@ && cd $(buildprefixrel) && ./config.status --quiet --file=$(@:$(buildprefix)%=%)
|
2014-09-05 06:08:06 -04:00
|
|
|
|
|
|
|
|
|
endif
|