-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile.in
51 lines (36 loc) · 1.09 KB
/
Makefile.in
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
40
41
42
43
44
45
46
47
48
49
50
51
DIR=src
SRC=$(DIR)/%LIB_BASE%
TGT=resources/libraries/%LIB_NAME%
DocProj=pdf-raku.github.io
DocRepo=https://github.com/pdf-raku/$(DocProj)
DocLinker=../$(DocProj)/etc/resolve-links.raku
TEST_JOBS ?= 6
all : lib
# 'all', with compilation warnings and debug symbols enabled
debug :
%MAKE% "CF=-Wall -g" all
lib : $(TGT)
$(TGT) : $(SRC)%O%
%LD% %LDSHARED% %LIBS% %LDFLAGS% %LDOUT%$(TGT) $(SRC)%O%
$(SRC)%O% : $(SRC).c $(SRC).h
%CC% -I $(DIR) -c %CCSHARED% %CCFLAGS% %CCOUT%$(SRC)%O% $(SRC).c
test : all
@prove6 -I . -j $(TEST_JOBS)
loudtest : all
@prove6 -I . -v
clean :
@rm -f $(SRC)*%O% $(TGT)
realclean : clean
@rm -f Makefile
docs/index.md : README.md
cp $< $@
docs/%.md : lib/%.rakumod
@raku -I . -c $<
raku -I . --doc=Markdown $< \
| TRAIL=$* raku -p -n $(DocLinker) \
> $@
$(DocLinker) :
(cd .. && git clone $(DocRepo) $(DocProj))
Pod-To-Markdown-installed :
@raku -M Pod::To::Markdown -c
doc : $(DocLinker) Pod-To-Markdown-installed docs/index.md docs/FontConfig.md docs/FontConfig/Pattern.md docs/FontConfig/Match.md docs/FontConfig/Raw.md docs/FontConfig/Match/Series.md