Help language development. Donate to The Perl Foundation

PDF::Class cpan:WARRINGD last updated on 2021-02-11

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

POD = $(shell find lib -name \*.rakumod|xargs grep -le '=begin')
MD = $(subst lib/,docs/,$(patsubst %.rakumod,%.md,$(POD)))

all : doc

docs : doc

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

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

clean :
	@rm -f `find docs -name \*.md`

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

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

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

doc :  $(DocLinker) $(MD) docs/index.md