-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (28 loc) · 954 Bytes
/
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
.PHONY: clean compile web-dev server-dev
SERVERDIR = server/pkg/cmd/molamola-server
SERVERBIN = molamola
CLIDIR = server/pkg/cmd/molamola-cli
CLIBIN = molamolactl
clean:
rm -f ${SERVERDIR}/${SERVERBIN}
rm -f ${CLIDIR}/${CLIBIN}
${MAKE} -C web clean
compile-cli:
cd ${CLIDIR} && \
go build -o ${CLIBIN} .
compile-server:
cd ${SERVERDIR} && \
go build -o ${SERVERBIN} .
web-dev:
${MAKE} -C web dev
server-dev: compile-server compile-cli
mkdir -p /tmp/molamola
rm -rf /tmp/molamola/*
./${CLIDIR}/${CLIBIN} --data /tmp/molamola user
./${CLIDIR}/${CLIBIN} --data /tmp/molamola user add mola --password mola
./${CLIDIR}/${CLIBIN} --data /tmp/molamola user
./${CLIDIR}/${CLIBIN} --data /tmp/molamola user remove mola
./${CLIDIR}/${CLIBIN} --data /tmp/molamola user
./${CLIDIR}/${CLIBIN} --data /tmp/molamola user add mola --password mola
./${CLIDIR}/${CLIBIN} --data /tmp/molamola user
./${SERVERDIR}/${SERVERBIN} --data /tmp/molamola