-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
executable file
·53 lines (35 loc) · 1.24 KB
/
Makefile
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
SHELL = /usr/local/bin/bash
CURRENT_DIR = $(shell pwd)
COUCHDB_LOG_DIR = /usr/local/var/log/couchdb
COUCHDB_LOG_OUTPUT = $(CURRENT_DIR)/log/couchdb/couchdb.log
start: start-database start-completesearch
restart: restart-database restart-completesearch
stop: stop-database stop-completesearch
start-database: start-couchdb start-couchdb-watcher
restart-database: restart-couchdb restart-couchdb-watcher
stop-database: stop-couchdb stop-couchdb-watcher
start-couchdb:
@echo "*** Starting couchdb ***"
@sudo /etc/init.d/couchdb start
restart-couchdb:
@echo "*** Restarting couchdb ***"
@sudo /etc/init.d/couchdb restart
stop-couchdb:
@echo "*** Stopping couchdb ***"
@sudo /etc/init.d/couchdb stop
start-couchdb-watcher:
@echo "*** Start watching couchdb ***"
@sudo /etc/init.d/couchdb-watcher start
restart-couchdb-watcher:
@echo "*** Restart watching couchdb ***"
@sudo /etc/init.d/couchdb-watcher restart
stop-couchdb-watcher:
@echo "*** Stop watching couchdb ***"
@sudo /etc/init.d/couchdb-watcher stop
start-completesearch:
restart-completesearch:
stop-completesearch:
log:
@cd ./couchdb/couchdb-log-parser && $(MAKE) all;
@cd ./couchdb/couchdb-log-parser && $(MAKE) INPUT=$(COUCHDB_LOG_DIR) \
OUTPUT=$(COUCHDB_LOG_OUTPUT) run;