forked from zyedidia/Literate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (32 loc) · 706 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
release: lit/markdown/source d-files
@mkdir -p bin
dub build --build=release
@rm bin/tangle
debug: lit/markdown/source d-files
@mkdir -p bin
dub build
bin/tangle:
dub --root=lit/tangle build
d-files: bin/tangle
@mkdir -p source
bin/tangle -odir source lit/*.lit
test: lit
dub test
lit/markdown/source:
@if [ ! -s lit/markdown/source ]; then \
if [ ! -s .git ]; then \
git clone https://github.com/zyedidia/dmarkdown lit/markdown; \
else \
git submodule init; \
git submodule update; \
fi \
fi;
clean:
dub clean
dub clean --root=lit/markdown
dub clean --root=lit/tangle
clean-all:
dub clean
dub clean --root=lit/markdown
dub clean --root=lit/tangle
rm -rf bin source