[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: OT -- gentle makefile assistance?



On Fri, Jan 24, 2003 at 03:41:56AM -0500, will trillich wrote:
> right now i've got (simplified for bandwidth):
> 
> 	PG=psql $(DB) -f
> 	ALL= \
> 		fns.sql \
> 		person.sql \
> 		dates.sql
> 
> 	Makefile: $(ALL)
> 
> 	.PRECIOUS: $(ALL)
> 
> 	all: $(ALL)
> 
> 	fns.sql:
> 		touch $@
> 		$(PG) $@
> 
> 	# if fns.sql changes, re-run person.sql
> 	person.sql: fns.sql
> 		touch $@
> 		$(PG) $@
> 
> 	# changes to person.sql? re-run dates.sql
> 	dates.sql: person.sql
> 		touch $@
> 		$(PG) $@
> 
> so if i munge (touch) fns.sql, person.sql is 'made' and so is
> dates.sql -- but fns.sql is beyond reach. what has my grokker not
> assimilated? it's gonna be something obvious, i can tell...

What event do you want to trigger the fns.sql rule?

-- 
Maciej Kalisiak       mac "at" dgp.toronto.edu       www.dgp.toronto.edu/~mac



Reply to: