Project

General

Profile

« Previous | Next » 

Revision 6933

schemas/Makefile: Installation: Moved %/uninstall to beginning of section because it applies to all schemas

View differences:

schemas/Makefile
29 29
psqlAsAdminVegbien := $(psqlAsAdmin) vegbien
30 30
psqlNoSearchPath := env no_search_path=1 ../bin/psql_script_vegbien
31 31

  
32
%/uninstall: _always
33
	@$(if $(filter public% r%,$*),$(call confirmRmPublicSchema,$*))
34
	echo $(call rmSchemaCmd,$*)|$(psqlNoSearchPath)
35

  
32 36
#### public
33 37

  
34 38
confirmRmPublicSchema = $(call confirm,WARNING: This will delete the $(1)\
......
71 75
	-<$< $(psqlNoSearchPath)
72 76
# ignore errors if schema exists
73 77

  
74
%/uninstall: _always
75
	@$(if $(filter public% r%,$*),$(call confirmRmPublicSchema,$*))
76
	echo $(call rmSchemaCmd,$*)|$(psqlNoSearchPath)
77

  
78 78
# Needed on Ubuntu 12.04 (also other Linuxes?) because %/reinstall is ignored.
79 79
temp/reinstall: _always temp/uninstall temp/install ;
80 80

  

Also available in: Unified diff