- Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathmakefile
More file actions
32 lines (22 loc) · 745 Bytes
/
makefile
File metadata and controls
32 lines (22 loc) · 745 Bytes
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
# This lets us use the dependency node modules with executable parts to them as
# if they were in $PATH like usual system programs.
export PATH := $(shell npm bin):$(PATH)
SRC = $(shell find src -name "*.ls" -type f | sort)
LIB = $(SRC:src/%.ls=lib/%.js)
all: $(LIB)
lib/%.js: src/%.ls
@mkdir -p lib/
lsc --output lib --bare --compile "$<"
clean:
@rm -rf lib/
test: all
@lsc test.ls
test-browser: all
@lsc test-browser.ls
test-readme: all readme.markdown
@txm readme.markdown
test-docs: all doc/how-macros-work.markdown doc/basics-reference.markdown
@txm doc/how-macros-work.markdown
@txm doc/basics-reference.markdown
test-all: all test test-readme test-docs test-browser
.PHONY: all clean test test-readme test-docs test-all