Project

General

Profile

1
all: install
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

    
28
test: test-map
29

    
30
test-%: FORCE
31
	./test/$(*F)
32

    
33
test-%: FORCE
34
	./test/$(*F)
(1-1/4)