1 |
202
|
aaronmk
|
all: install
|
2 |
149
|
aaronmk
|
|
3 |
202
|
aaronmk
|
FORCE:
|
4 |
|
|
|
5 |
|
|
|
6 |
|
|
install: user db
|
7 |
|
|
|
8 |
|
|
uninstall: rm_db rm_user
|
9 |
|
|
|
10 |
|
|
reinstall_db: rm_db db
|
11 |
|
|
|
12 |
|
|
psql_admin = sudo -u postgres psql --quiet
|
13 |
|
|
|
14 |
|
|
user: FORCE
|
15 |
|
|
-./admin/bien_user_create
|
16 |
|
|
# ignore errors about existing user
|
17 |
|
|
|
18 |
|
|
rm_user: FORCE
|
19 |
|
|
echo "DROP USER bien;"|$(psql_admin)
|
20 |
|
|
|
21 |
|
|
db: FORCE
|
22 |
|
|
$(psql_admin) <./admin/vegbien_db_create.sql
|
23 |
|
|
|
24 |
|
|
rm_db: FORCE
|
25 |
|
|
echo "DROP DATABASE vegbien;"|$(psql_admin)
|
26 |
|
|
|
27 |
|
|
|
28 |
176
|
aaronmk
|
test: test-map
|
29 |
149
|
aaronmk
|
|
30 |
176
|
aaronmk
|
test-%: FORCE
|
31 |
|
|
./test/$(*F)
|
32 |
|
|
|
33 |
202
|
aaronmk
|
test-%: FORCE
|
34 |
|
|
./test/$(*F)
|