-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile.in
64 lines (44 loc) · 2.45 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
52
53
54
55
56
57
58
59
60
61
62
SRC=src
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 : resources/libraries/%LIB-NAME%
resources/libraries/%LIB-NAME% : $(SRC)/ft6_face%O% $(SRC)/ft6_outline%O% $(SRC)/ft6_glyph%O% $(SRC)/ft6_glyphslot%O% $(SRC)/ft6_bitmap%O%
%LD% %LDSHARED% %LDFLAGS% %LDOUT%resources/libraries/%LIB-NAME% \
$(SRC)/ft6_face%O% $(SRC)/ft6_outline%O% $(SRC)/ft6_glyph%O% $(SRC)/ft6_glyphslot%O% $(SRC)/ft6_bitmap%O% \
%LIBS% $(CF)
$(SRC)/ft6_face%O% : $(SRC)/ft6_face.c $(SRC)/ft6_face.h
%CC% -I $(SRC) -c %CCSHARED% %CCFLAGS% %CCOUT%$(SRC)/ft6_face%O% $(SRC)/ft6_face.c %LIB-CFLAGS% $(CF)
$(SRC)/ft6_outline%O% : $(SRC)/ft6_outline.c $(SRC)/ft6_outline.h
%CC% -I $(SRC) -c %CCSHARED% %CCFLAGS% %CCOUT%$(SRC)/ft6_outline%O% $(SRC)/ft6_outline.c %LIB-CFLAGS% $(CF)
$(SRC)/ft6_glyph%O% : $(SRC)/ft6_glyph.c $(SRC)/ft6_glyph.h
%CC% -I $(SRC) -c %CCSHARED% %CCFLAGS% %CCOUT%$(SRC)/ft6_glyph%O% $(SRC)/ft6_glyph.c %LIB-CFLAGS% $(CF)
$(SRC)/ft6_glyphslot%O% : $(SRC)/ft6_glyphslot.c $(SRC)/ft6_glyphslot.h
%CC% -I $(SRC) -c %CCSHARED% %CCFLAGS% %CCOUT%$(SRC)/ft6_glyphslot%O% $(SRC)/ft6_glyphslot.c %LIB-CFLAGS% $(CF)
$(SRC)/ft6_bitmap%O% : $(SRC)/ft6_bitmap.c $(SRC)/ft6_bitmap.h
%CC% -I $(SRC) -c %CCSHARED% %CCFLAGS% %CCOUT%$(SRC)/ft6_bitmap%O% $(SRC)/ft6_bitmap.c %LIB-CFLAGS% $(CF)
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/Font/FreeType.md docs/Font/FreeType/BBox.md docs/Font/FreeType/BitMap.md docs/Font/FreeType/CharMap.md docs/Font/FreeType/Face.md docs/Font/FreeType/Glyph.md docs/Font/FreeType/GlyphImage.md docs/Font/FreeType/Outline.md docs/Font/FreeType/SizeMetrics.md docs/Font/FreeType/NamedInfo.md docs/Font/FreeType/Raw.md docs/Font/FreeType/Raw/Defs.md docs/Font/FreeType/Raw/TT_Sfnt.md
test : all
@prove -e"raku -I ." -j $(TEST_JOBS) t
loudtest : all
@prove -e"raku -I ." -v t
clean :
@rm -f $(SRC)/ft6_*%O% resources/libraries/*%LIB-NAME%
realclean : clean
@rm -f Makefile docs/index.md docs/Font/FreeType.md docs/Font/FreeType/*.md docs/Font/FreeType/*/*.md