-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
34 lines (23 loc) · 963 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
test :
@prove -e"raku -I ." -j $(TEST_JOBS) t
loudtest :
@prove -e"raku -I ." -v t
clean :
@rm -f docs/PDF/Content.md docs/PDF/Content/*.md docs/PDF/Content/*/*.md
$(DocLinker) :
(cd .. && git clone $(DocRepo) $(DocProj))
docs/%.md : lib/%.rakumod
@raku -I. -c $<
raku -I . --doc=Markdown $< \
| TRAIL=$* raku -p -n $(DocLinker) \
> $@
Pod-To-Markdown-installed :
@raku -M Pod::To::Markdown -c
doc : $(DocLinker) Pod-To-Markdown-installed docs/index.md docs/PDF/Content.md docs/PDF/Content/Canvas.md docs/PDF/Content/Ops.md docs/PDF/Content/Image.md docs/PDF/Content/Font/CoreFont.md docs/PDF/Content/Color.md docs/PDF/Content/Tag.md docs/PDF/Content/PageTree.md docs/PDF/Content/Text/Box.md docs/PDF/Content/Text/Style.md docs/PDF/Content/Text/Line.md
docs/index.md : README.md
cp $< $@