Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (9 sloc) 347 Bytes
GRAMMAR = $(shell echo *.pgx)
export PERL5LIB=../pegex-pm/lib
COMPILE_COMMAND = pegex compile $(OPTIONS) --to=
ALL = $(GRAMMAR:%=%.yaml) $(GRAMMAR:%=%.json)
all: $(ALL)
$(ALL): $(GRAMMAR) Makefile
$(COMPILE_COMMAND)$(shell perl -e '$$_="$@";s/.*\.//;print') $(shell perl -e '$$_="$@";s/\.\w+$$//;print') > $@
clean purge:
rm -f *.yaml *.json