-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (29 loc) · 795 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
LIBS=
RUN=node_modules/lithp/run
GENFILES=./genfiles.sh
RUNFLAGS=-cc
EXTRA_PATHS="../../modules ../../webide"
BROWSERIFY_OPTS=
.PHONY: webide modules lithp-pkg.js pre links clean
default: pre links modules lithp-pkg.js
all: default
pre:
rm -f node_modules/lithp-pkg/files.js
links:
if [ ! -L "run" ]; then \
ln -s node_modules/lithp/run.js run; \
fi
lithp-pkg.js: modules webide
$(MAKE) -C node_modules/lithp-pkg files.js EXTRA_PATHS=$(EXTRA_PATHS)
cp node_modules/lithp-pkg/files.js .
node_modules/.bin/browserify index.js $(BROWSERIFY_OPTS) -o lithp-pkg.js
cp lithp-pkg.js html/
modules:
$(MAKE) -C modules RUNFLAGS="$(RUNFLAGS)"
webide:
$(MAKE) -C webide
clean:
rm -f lithp-pkg.js
$(MAKE) -C node_modules/lithp-pkg clean
$(MAKE) -C modules clean
$(MAKE) -C webide clean