-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
32 lines (24 loc) · 921 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
DocProj=pdf-raku.github.io
DocRepo=https://github.com/pdf-raku/$(DocProj)
DocLinker=../$(DocProj)/etc/resolve-links.raku
TEST_JOBS ?= 6
all : doc
Pod-To-Markdown-installed :
@raku -M Pod::To::Markdown -c
doc : $(DocLinker) Pod-To-Markdown-installed docs/index.md docs/PDF/Font/Loader.md docs/PDF/Font/Loader/FontObj.md \
docs/PDF/Font/Loader.md docs/PDF/Font/Loader/FontObj/CID.md docs/PDF/Font/Loader/Dict.md \
docs/PDF/Font/Loader/Enc.md docs/PDF/Font/Loader/Enc/Type1.md docs/PDF/Font/Loader/Enc/Identity16.md docs/PDF/Font/Loader/Enc/Unicode.md \
docs/PDF/Font/Loader/Enc/CMap.md docs/PDF/Font/Loader/Glyph.md
docs/index.md : README.md
cp $< $@
docs/%.md : lib/%.rakumod
@raku -I . $<
raku -I . --doc=Markdown $< \
| TRAIL=$* raku -p -n $(DocLinker) \
> $@
test :
@prove6 -I. -j $(TEST_JOBS) t
loudtest :
@prove6 -I. -v t
$(DocLinker) :
(cd .. && git clone $(DocRepo) $(DocProj))