1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
trial:
@trial distinctdb/
start-database:
@./bin/start-database.sh
@psql -h `pwd`/tmp/db1 -d distinct < bin/schema.sql
stop-database:
@./bin/stop-database.sh
start-redis:
@./bin/start-redis.sh
stop-redis:
@./bin/stop-redis.sh
start: start-database start-redis
stop: stop-redis stop-database
clean:
@rm -rf ./tmp/
test: start
@$(MAKE) trial stop clean || ($(MAKE) stop clean; false)
.PHONY: trial test start-database stop-database start-redis stop-redis start stop
|