-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (33 loc) · 1.04 KB
/
Makefile
File metadata and controls
43 lines (33 loc) · 1.04 KB
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
ARCH=$(shell uname -m)
APP_SRC=FranzCocoa
RKT_SRC=core
RKT_FILES=$(shell find ${RKT_SRC} -name '*.rkt')
RKT_MAIN_ZO=${RKT_SRC}/compiled/main_rkt.zo
RESOURCES_PATH=${APP_SRC}/resources
RUNTIME_NAME=runtime-${ARCH}
RUNTIME_PATH=${RESOURCES_PATH}/${RUNTIME_NAME}
MANUAL_PATH=${RESOURCES_PATH}/manual
CORE_ZO=${RESOURCES_PATH}/core-${ARCH}.zo
.PHONY: all
all: ${CORE_ZO} ${APP_SRC}/Backend.swift
.PHONY: clean
clean:
rm -fr ${RESOURCES_PATH}
${RKT_MAIN_ZO}: ${RKT_FILES}
raco make -j 16 -v ${RKT_SRC}/main.rkt
${CORE_ZO}: ${RKT_MAIN_ZO}
mkdir -p ${RESOURCES_PATH}
rm -fr ${RUNTIME_PATH}
raco ctool \
++lang lua \
++lib lua/lang/runtime-config \
++lib racket/runtime-config \
--runtime ${RUNTIME_PATH} \
--runtime-access ${RUNTIME_NAME} \
--mods $@ ${RKT_SRC}/main.rkt
${APP_SRC}/Backend.swift: ${CORE_ZO}
raco noise-serde-codegen ${RKT_SRC}/main.rkt > $@
${MANUAL_PATH}/index.html: manual/*.scrbl
raco scribble --html --dest ${MANUAL_PATH} +m manual/index.scrbl
website/manual/index.html: manual/*.scrbl
make -C website manual/index.html