Revision 1918
Added by Aaron Marcuse-Kubitza over 12 years ago
input.Makefile | ||
---|---|---|
49 | 49 |
diffVerbose = $(if $(verbose),diff --side-by-side --left-column\ |
50 | 50 |
--width=$(termCols),$(diff)) |
51 | 51 |
|
52 |
# Commands
|
|
52 |
# BIEN commands
|
|
53 | 53 |
selfMap = $(bin)/cols 0 0 |
54 | 54 |
psqlOpts := --set ON_ERROR_STOP=1 --quiet |
55 | 55 |
psqlAsBien := $(bin)/psql_vegbien $(psqlOpts) |
... | ... | |
104 | 104 |
|
105 | 105 |
##### Installation |
106 | 106 |
|
107 |
install: _always src/install ; |
|
107 |
install: _always src/install import/install ;
|
|
108 | 108 |
|
109 |
uninstall: _always src/uninstall ; |
|
109 |
uninstall: _always import/uninstall src/uninstall ;
|
|
110 | 110 |
|
111 | 111 |
reinstall: _always uninstall install ; |
112 | 112 |
|
113 |
##### Staging tables |
|
114 |
|
|
115 |
import/install: _always |
|
116 |
-echo "CREATE SCHEMA $(datasrc);"|$(psqlAsBien) |
|
117 |
# ignore errors if schema exists |
|
118 |
|
|
119 |
import/uninstall: _always |
|
120 |
echo "DROP SCHEMA IF EXISTS $(datasrc) CASCADE;"|$(psqlAsBien) |
|
121 |
|
|
113 | 122 |
##### Existing maps discovery |
114 | 123 |
|
115 | 124 |
srcMap := maps/src.%.csv |
Also available in: Unified diff
input.Makefile: Installation: Create a schema for the datasource in VegBIEN as part of the installation process. This will be used to hold staging tables.