Project

General

Profile

« Previous | Next » 

Revision 3543

backups/Makefile: Split %.backup and %.sql into separate targets for clarity

View differences:

backups/Makefile
56 56
# Note: This can't be used for the current (unrotated) public schema because
57 57
# pg_dump doesn't back up the CREATE SCHEMA statement for it, assuming falsely
58 58
# that public already exists because it's in template1.
59
%.backup %.sql:
60
	$(if $(filter %.sql,$@),env plain=1) $(backup) $* >$@
59
backup* = $(backup) $* >$@
60
%.backup:
61
	$(backup*)
62
%.sql:
63
	env plain=1 $(backup*)
61 64

  
62 65
%.backup/restore: %.backup _always
63 66
	$(restoreBien) $<

Also available in: Unified diff