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