Revision 202
Added by Aaron Marcuse-Kubitza about 13 years ago
scripts/Makefile | ||
---|---|---|
1 |
all: |
|
1 |
all: install
|
|
2 | 2 |
|
3 |
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 |
|
|
3 | 28 |
test: test-map |
4 | 29 |
|
5 | 30 |
test-%: FORCE |
6 | 31 |
./test/$(*F) |
7 | 32 |
|
8 |
FORCE: |
|
33 |
test-%: FORCE |
|
34 |
./test/$(*F) |
Also available in: Unified diff
scripts/Makefile: install/uninstall targets