BASE=../lib/Pegex/Grammar

# all: $(BASE)/Pegex.pm $(BASE)/Bootstrap.pm

all: $(BASE)/Pegex.pm

$(BASE)/Pegex.pm: pegex.pgx grammar.pl Makefile
	perl grammar.pl $< > $@.tmp
	mv $@.tmp $@

$(BASE)/Bootstrap.pm: bootstrap.pl Makefile
	perl $< > $@
