Help language development. Donate to The Perl Foundation

Font::FreeType cpan:WARRINGD last updated on 2020-09-09

Makefile.in
SRC=src
DocProj=pdf-raku.github.io
DocRepo=https://github.com/pdf-raku/$(DocProj)
DocLinker=../$(DocProj)/etc/resolve-links.raku

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_outline%O% $(SRC)/ft6_glyph%O% $(SRC)/ft6_glyphslot%O%
	%LD% %LDSHARED% %LDFLAGS% %LDOUT%resources/libraries/%LIB-NAME% $(SRC)/ft6_outline%O% $(SRC)/ft6_glyph%O% $(SRC)/ft6_glyphslot%O% %LIB-LDFLAGS% $(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)

docs/index.md : README.md
	cp $< [email protected]

docs/%.md : lib/%.rakumod
	raku -I . --doc=Markdown $< \
	| TRAIL=$* raku -p -n  $(DocLinker) \
        > [email protected]

$(DocLinker) :
	(cd .. && git clone $(DocRepo) $(DocProj))

doc : $(DocLinker) docs/index.md docs/Font/FreeType.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/NamedInfo.md docs/Font/FreeType/Raw.md docs/Font/FreeType/Raw/Defs.md docs/Font/FreeType/Raw/TT_Sfnt.md

docs/Font/FreeType.md : lib/Font/FreeType.rakumod

docs/Font/FreeType/BitMap.md : lib/Font/FreeType/BitMap.rakumod

docs/Font/FreeType/CharMap.md : lib/Font/FreeType/CharMap.rakumod

docs/Font/FreeType/Face.md : lib/Font/FreeType/Face.rakumod

docs/Font/FreeType/Glyph.md : lib/Font/FreeType/Glyph.rakumod

docs/Font/FreeType/GlyphImage.md : lib/Font/FreeType/GlyphImage.rakumod

docs/Font/FreeType/NamedInfo.md : lib/Font/FreeType/NamedInfo.rakumod

docs/Font/FreeType/Outline.md : lib/Font/FreeType/Outline.rakumod

docs/Font/FreeType/Raw.md : lib/Font/FreeType/Raw.rakumod

docs/Font/FreeType/Raw/Defs.md : lib/Font/FreeType/Raw/Defs.rakumod

docs/Font/FreeType/Raw/TT_Sfnt.md : lib/Font/FreeType/Raw/TT_Sfnt.rakumod

test : all
	@prove -e"raku -I ." t

loudtest : all
	@prove -e"raku -I ." -v t

clean :
	@rm -f $(SRC)/ft6_*%O% resources/libraries/*%LIB-NAME%

realclean : clean
	@rm -f Makefile README.md docs/index.md docs/Font/FreeType/*.md docs/Font/FreeType/*/*.md