-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
46 lines (32 loc) · 837 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: clean clean-frontend clean-backend clean-app install backend backend-prod frontend frontend-prod app app-prod
backend_path = Backend
frontend_path = Frontend
app_path = App
frontend_dist = dist
dependencies = node_modules
install: backend frontend app
clean: clean-backend clean-frontend clean-app
@rm -rf $(frontend_path)/$(frontend_dist);
backend:
@cd $(backend_path); \
npm install
backend-prod:
clean-backend:
@cd $(backend_path); \
rm -rf $(dependencies)
frontend:
@cd $(frontend_path); \
npm install
frontend-prod: clean-frontend frontend
@cd $(frontend_path); \
npm run build;
clean-frontend:
@cd $(frontend_path); \
rm -rf $(dependencies);
app:
@cd $(app_path); \
npm install
app-prod: clean-app app
clean-app:
@cd $(app_path); \
rm -rf $(dependencies);