-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathweb.mk
63 lines (43 loc) · 1.03 KB
/
web.mk
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
54
55
56
57
58
59
60
61
include ../../build.mk
NPX_REACTSCRIPTS := npx react-scripts
NPX_SASS := npx sass
NPX_WEBPACK := npx webpack
FRONTEND_PUBLIC_DIR := public
FRONTEND_PUBLIC_CSS := ${FRONTEND_PUBLIC_DIR}/index.css
FRONTEND_TSCONFIG_JSON := tsconfig.json
FRONTEND_BUILD_ASSET_MANIFEST := ${FRONTEND_BUILD_DIR}/asset-manifest.json
FRONTEND_BUILD_CSS := ${FRONTEND_BUILD_DIR}/index.css
FRONTEND_BUILD := build-frontend
WEBSITE_BUILD := npm run build
BACKEND_SRC_GO := $(shell find ${BACKEND_SRC_DIR} -name '*.go')
BACKEND_BUILD := ${REPO}.out
.PHONY: \
clean-build \
clean-publish \
clean \
css \
js \
gengql \
relay \
nextjs \
build \
frontend \
website \
backend \
test \
watch-css \
watch-js \
watch
all: frontend
${REPO}.out: ${BACKEND_SRC_GO}
@cd ${BACKEND_SRC_DIR} && ${GO_BUILD} -o ../${REPO}.out
backend: ${BACKEND_BUILD}
frontend: ${FRONTEND_BUILD}
website: ${WEBSITE_BUILD}
docker-backend: ${BACKEND_SRC}
@${DOCKER_BUILD} \
${DOCKERFLAGS} \
-t "${ORG_ROOT}/${REPO}-backend" \
-f Dockerfile.backend \
.
@touch docker-backend