about summary refs log blame commit diff
path: root/mk/templates.mk
blob: ab99168bb7a5ee6337c8654c2be2102d17f41ded (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                 
 

                                                                     
                           
 
                     


     
           
                                                                    
 
       
                                                                  
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

%.h: %.h.in
	$(trace-gen) rm -f $@ && ./config.status --quiet --header=$@

%: %.in
	$(trace-gen) rm -f $@ && ./config.status --quiet --file=$@