-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
40 lines (26 loc) · 1.05 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
MAKEFLAGS += -j3
NODEPM = npm
ifneq (, $(shell which yarn))
NODEPM = yarn
endif
.PHONY: install install_production run clean install_parser install_parser_novenv install_server install_frontend start_frontend start_server clean_node clean_parser
install_parser:
cd src/server/utils/parser && export SYSTEM_VERSION_COMPAT=1 && pipenv install && pipenv run resumeParser foobar --install
install_parser_novenv:
cd src/server/utils/parser && pip3 install -r requirements.txt && pip3 install --user --editable . && resumeParser foobar --install
install_server:
cd src/server && $(NODEPM) install
install_frontend:
cd src/client && $(NODEPM) install
start_frontend:
cd src/client && $(NODEPM) start
start_server:
cd src/server && $(NODEPM) start
install: install_parser install_frontend install_server
install_production: install_parser_novenv install_frontend install_server
run: start_frontend start_server
clean_node:
find . -type d -name "node_modules" -exec rm -rf {} \;
clean_parser:
cd src/server/utils/parser && pipenv --rm
clean: clean_node clean_parser