Project

General

Profile

« Previous | Next » 

Revision 3544

backups/Makefile: .sql: When testing, turn it off so make won't skip `.sql: %` in favor of it

View differences:

Makefile
53 53
%.sql: %
54 54
	$(restore) $< >$@
55 55

  
56
backup* = $(backup) $* >$@
57

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

  
64
# When testing, turn off %.sql so make won't skip `%.sql: %` in favor of it
65
ifeq ($(filter %.backup/test,$(MAKECMDGOALS)),)
62 66
%.sql:
63 67
	env plain=1 $(backup*)
68
endif
64 69

  
65 70
%.backup/restore: %.backup _always
66 71
	$(restoreBien) $<

Also available in: Unified diff