forked from jdavid/walkhub-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
46 lines (35 loc) · 951 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
35
36
37
38
39
40
41
42
43
44
45
46
.PHONY: all buildfrontend buildbackend preparefrontend update clean mrproper docker preparedocker rebuildsearch
all: buildfrontend buildbackend rebuildsearch
buildfrontend: preparefrontend
npm run build
buildbackend:
go build -o walkhub cmd/walkhub/main.go
preparefrontend:
npm install
mkdir -p public
mkdir -p assets
update:
npm update
clean:
rm assets/*
[ ! -e walkhub ] || rm ./walkhub
rm -r dist
mrproper: clean
rm -r node_modules
preparedocker: all
mkdir -p dist
cp walkhub dist
cp wh-rebuildsearch dist
cp config.json dist
cp -R assets dist
cp -R public dist
cp Dockerfile dist
docker: preparedocker
cd dist && docker build -t pronovix/walkhub-service .
rebuildsearch:
go build -o wh-rebuildsearch cmd/wh-rebuildsearch/main.go
gettext:
python gettext.py
msgmerge -U locales/en.po locales/messages.pot
msgmerge -U locales/fr.po locales/messages.pot
npm run stonejs -- build --merge locales/*.po js/messages.json