Project

General

Profile

« Previous | Next » 

Revision 6934

schemas/Makefile: Installation: Merged public/install and public%/install

View differences:

Makefile
38 38
confirmRmPublicSchema = $(call confirm,WARNING: This will delete the $(1)\
39 39
schema of your VegBIEN DB!,$(2))
40 40

  
41
public/install: vegbien.sql _always
42
	-echo $(call mkSchemaCmd,public)|$(psqlNoSearchPath)
43
	<$< $(psqlNoSearchPath)
44
# ignore errors if schema exists
45
# public schema will be owned by bien
46
# don't include public in the search_path
47

  
48 41
# Installs a version of the public schema
49
public%/install: vegbien.sql _always
42
public/install public%/install: vegbien.sql _always
50 43
	echo $(call mkSchemaCmd,$(@D))\
51 44
"COMMENT ON SCHEMA $(@D) IS 'Version: $(@D) ($(date))';"|$(psqlNoSearchPath)
52 45
	<$< $(sed) 's/( )public([,; ])/\1$(@D)\2/g'|$(psqlNoSearchPath)

Also available in: Unified diff