# Makefile for the Sherlock HTML Parser (c) 2001 Martin Mares <mj@ucw.cz>

DIRS+=gather/format/html

LIBGATH_MODS+=format/html/html format/html/entities format/html/tags

gather/format/html/entities.c: gather/format/html/entities.k obj/build/genhash
	obj/build/genhash $< $@ is_entity

gather/format/html/tags.c: gather/format/html/tags.k obj/build/genhash
	obj/build/genhash $< $@ is_tag

# Shut up incomplete initializer warnings from newer versions of gcc
obj/gather/format/html/entities.o obj/gather/format/html/entities.oo: CWARNS=
obj/gather/format/html/tags.o obj/gather/format/html/tags.oo: CWARNS=

clean::
	rm -f gather/format/html/{entities,tags}.c
