Project

General

Profile

« Previous | Next » 

Revision 4438

input.Makefile: Staging tables installation: $(dbExports): Fixed bug where it would be non-empty even when the input contains no DB exports, because += adds extra whitespace. This caused sql/install to be incorrectly included as part of $(allInstalls).

View differences:

inputs/input.Makefile
170 170

  
171 171
dbExports := $(wildcard *.schema.sql)# schemas first
172 172
dbExports += $(filter-out $(dbExports),$(wildcard *.sql))# all others
173
dbExports := $(strip $(dbExports))# += adds extra whitespace
173 174
allInstalls := $(if $(dbExports),sql) $(allTables)
174 175

  
175 176
install: _always schema $(allInstalls:%=%/install) ;

Also available in: Unified diff