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