Help language development. Donate to The Perl Foundation

LibXML cpan:WARRINGD last updated on 2020-08-17

Makefile.in
SRC=src
TRAVIS=https://travis-ci.org/p6-xml/LibXML-raku

all : lib

lib : resources/libraries/%LIB-NAME%

# 'all', with compilation warnings and debug symbols enabled
debug :
	%MAKE% "DBG=-Wall -DDEBUG -g"  all

coverage :
	%MAKE% "DBG=-fprofile-arcs -ftest-coverage" "LD_DBG=-coverage -lgcov" all

resources/libraries/%LIB-NAME% : $(SRC)/dom%O% $(SRC)/domXPath%O% $(SRC)/xml6_parser_ctx%O% $(SRC)/xml6_config%O% $(SRC)/xml6_doc%O% $(SRC)/xml6_entity%O% $(SRC)/xml6_gbl%O% $(SRC)/xml6_hash%O% $(SRC)/xml6_input%O% $(SRC)/xml6_node%O% $(SRC)/xml6_ns%O% $(SRC)/xml6_sax%O% $(SRC)/xml6_ref%O% $(SRC)/xml6_reader%O% $(SRC)/xml6_xpath%O% $(SRC)/xml6_error%O%
	%LD% %LDSHARED% %LDFLAGS% %LDOUT%resources/libraries/%LIB-NAME% \
        $(SRC)/dom%O%  $(SRC)/domXPath%O% $(SRC)/xml6_parser_ctx%O% $(SRC)/xml6_config%O% $(SRC)/xml6_doc%O% $(SRC)/xml6_entity%O% $(SRC)/xml6_gbl%O% $(SRC)/xml6_hash%O% $(SRC)/xml6_input%O% $(SRC)/xml6_node%O% $(SRC)/xml6_ns%O% $(SRC)/xml6_sax%O% $(SRC)/xml6_ref%O%  $(SRC)/xml6_reader%O% $(SRC)/xml6_xpath%O%  $(SRC)/xml6_error%O% \
        %LIB-LDFLAGS% $(LD_DBG) 

$(SRC)/dom%O% : $(SRC)/dom.c $(SRC)/dom.h
	%CC% -I $(SRC) -c %CCSHARED% %CCFLAGS% %CCOUT%$(SRC)/dom%O% $(SRC)/dom.c %LIB-CFLAGS% $(DBG)

$(SRC)/domXPath%O% : $(SRC)/domXPath.c $(SRC)/domXPath.h
	%CC% -I $(SRC) -c %CCSHARED% %CCFLAGS% %CCOUT%$(SRC)/domXPath%O% $(SRC)/domXPath.c %LIB-CFLAGS% $(DBG)

$(SRC)/xml6_parser_ctx%O% : $(SRC)/xml6_parser_ctx.c $(SRC)/xml6_parser_ctx.h
	%CC% -I $(SRC) -c %CCSHARED% %CCFLAGS% %CCOUT%$(SRC)/xml6_parser_ctx%O% $(SRC)/xml6_parser_ctx.c %LIB-CFLAGS% $(DBG)

$(SRC)/xml6_config%O% : $(SRC)/xml6_config.c $(SRC)/xml6_config.h
	%CC% -I $(SRC) -c %CCSHARED% %CCFLAGS% %CCOUT%$(SRC)/xml6_config%O% $(SRC)/xml6_config.c %LIB-CFLAGS% $(DBG)

$(SRC)/xml6_doc%O% : $(SRC)/xml6_doc.c $(SRC)/xml6_doc.h
	%CC% -I $(SRC) -c %CCSHARED% %CCFLAGS% %CCOUT%$(SRC)/xml6_doc%O% $(SRC)/xml6_doc.c %LIB-CFLAGS% $(DBG)

$(SRC)/xml6_entity%O% : $(SRC)/xml6_entity.c $(SRC)/xml6_entity.h
	%CC% -I $(SRC) -c %CCSHARED% %CCFLAGS% %CCOUT%$(SRC)/xml6_entity%O% $(SRC)/xml6_entity.c %LIB-CFLAGS% $(DBG)

$(SRC)/xml6_gbl%O% : $(SRC)/xml6_gbl.c $(SRC)/xml6_gbl.h
	%CC% -I $(SRC) -c %CCSHARED% %CCFLAGS% %CCOUT%$(SRC)/xml6_gbl%O% $(SRC)/xml6_gbl.c %LIB-CFLAGS% $(DBG)

$(SRC)/xml6_hash%O% : $(SRC)/xml6_hash.c $(SRC)/xml6_hash.h
	%CC% -I $(SRC) -c %CCSHARED% %CCFLAGS% %CCOUT%$(SRC)/xml6_hash%O% $(SRC)/xml6_hash.c %LIB-CFLAGS% $(DBG)

$(SRC)/xml6_input%O% : $(SRC)/xml6_input.c $(SRC)/xml6_input.h
	%CC% -I $(SRC) -c %CCSHARED% %CCFLAGS% %CCOUT%$(SRC)/xml6_input%O% $(SRC)/xml6_input.c %LIB-CFLAGS% $(DBG)

$(SRC)/xml6_node%O% : $(SRC)/xml6_node.c $(SRC)/xml6_node.h
	%CC% -I $(SRC) -c %CCSHARED% %CCFLAGS% %CCOUT%$(SRC)/xml6_node%O% $(SRC)/xml6_node.c %LIB-CFLAGS% $(DBG)

$(SRC)/xml6_ns%O% : $(SRC)/xml6_ns.c $(SRC)/xml6_ns.h
	%CC% -I $(SRC) -c %CCSHARED% %CCFLAGS% %CCOUT%$(SRC)/xml6_ns%O% $(SRC)/xml6_ns.c %LIB-CFLAGS% $(DBG)

$(SRC)/xml6_sax%O% : $(SRC)/xml6_sax.c $(SRC)/xml6_sax.h
	%CC% -I $(SRC) -c %CCSHARED% %CCFLAGS% %CCOUT%$(SRC)/xml6_sax%O% $(SRC)/xml6_sax.c %LIB-CFLAGS% $(DBG)

$(SRC)/xml6_ref%O% : $(SRC)/xml6_ref.c $(SRC)/xml6_ref.h
	%CC% -I $(SRC) -c %CCSHARED% %CCFLAGS% %CCOUT%$(SRC)/xml6_ref%O% $(SRC)/xml6_ref.c %LIB-CFLAGS% $(DBG)

$(SRC)/xml6_reader%O% : $(SRC)/xml6_reader.c $(SRC)/xml6_reader.h
	%CC% -I $(SRC) -c %CCSHARED% %CCFLAGS% %CCOUT%$(SRC)/xml6_reader%O% $(SRC)/xml6_reader.c %LIB-CFLAGS% $(DBG)

$(SRC)/xml6_xpath%O% : $(SRC)/xml6_xpath.c $(SRC)/xml6_xpath.h
	%CC% -I $(SRC) -c %CCSHARED% %CCFLAGS% %CCOUT%$(SRC)/xml6_xpath%O% $(SRC)/xml6_xpath.c %LIB-CFLAGS% $(DBG)

$(SRC)/xml6_error%O% : $(SRC)/xml6_error.c $(SRC)/xml6_error.h
	%CC% -I $(SRC) -c %CCSHARED% %CCFLAGS% %CCOUT%$(SRC)/xml6_error%O% $(SRC)/xml6_error.c %LIB-CFLAGS% $(DBG)

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

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

xtest : all
	@prove -e"perl6 -I ." -r t xt

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

realclean : clean
	@rm -f Makefile docs/*.md docs/*/*.md

doc : docs/index.md docs/Attr.md docs/Attr/Map.md docs/CDATA.md docs/Comment.md docs/Config.md docs/Document.md docs/DocumentFragment.md\
      docs/Dtd.md docs/Element.md docs/Enums.md docs/ErrorHandling.md docs/InputCallback.md docs/Item.md docs/Namespace.md docs/HashMap.md docs/Raw.md\
      docs/Node.md docs/Node/List.md docs/Node/Set.md docs/PI.md docs/RelaxNG.md docs/Text.md docs/Pattern.md\
      docs/Parser.md docs/PushParser.md docs/RegExp.md docs/Reader.md docs/Schema.md\
      docs/XPath/Context.md docs/XPath/Expression.md\
      docs/SAX/Builder.md

docs/index.md : lib/LibXML.rakumod
	(\
	    echo '[![Build Status]($(TRAVIS).svg?branch=master)]($(TRAVIS))'; \
            echo '';\
            raku -I . --doc=Markdown $< \
            | raku -p -n etc/resolve-links.raku \
        ) > [email protected]

docs/%.md : lib/LibXML/%.rakumod
	raku -I . --doc=Markdown $< \
	| raku -p -n etc/resolve-links.raku \
        > [email protected]

docs/Attr.md : lib/LibXML/Attr.rakumod

docs/Attr/Map.md : lib/LibXML/Attr/Map.rakumod

docs/Comment.md : lib/LibXML/Comment.rakumod

docs/Config.md : lib/LibXML/Config.rakumod

docs/CDATA.md : lib/LibXML/CDATA.rakumod

docs/Document.md : lib/LibXML/Document.rakumod

docs/DocumentFragment.md : lib/LibXML/DocumentFragment.rakumod

docs/Dtd.md : lib/LibXML/Dtd.rakumod

docs/Element.md : lib/LibXML/Element.rakumod

docs/Enums.md : lib/LibXML/Enums.rakumod

docs/ErrorHandling.md : lib/LibXML/ErrorHandling.rakumod

docs/HashMap.md : lib/LibXML/HashMap.rakumod

docs/InputCallback.md : lib/LibXML/InputCallback.rakumod

docs/Item.md : lib/LibXML/Item.rakumod

docs/Namespace.md : lib/LibXML/Namespace.rakumod

docs/Raw.md : lib/LibXML/Raw.rakumod

docs/Node.md : lib/LibXML/Node.rakumod

docs/Node/List.md : lib/LibXML/Node/List.rakumod

docs/Node/Set.md : lib/LibXML/Node/Set.rakumod

docs/PI.md : lib/LibXML/PI.rakumod

docs/Parser.md : lib/LibXML/Parser.rakumod

docs/PushParser.md : lib/LibXML/PushParser.rakumod

docs/Pattern.md : lib/LibXML/Pattern.rakumod

docs/RegExp.md : lib/LibXML/RegExp.rakumod

docs/Reader.md : lib/LibXML/Reader.rakumod

docs/Schema.md : lib/LibXML/Schema.rakumod

docs/RelaxNG.md : lib/LibXML/RelaxNG.rakumod

docs/SAX/Builder : lib/LibXML/SAX/Builder.rakumod

docs/Text.md : lib/LibXML/Text.rakumod

docs/XPath/Context.md : lib/LibXML/XPath/Context.rakumod

docs/XPath/Expression.md : lib/LibXML/XPath/Expression.rakumod