lang/Makefile

14 lines
271 B
Makefile
Raw Normal View History

2020-04-19 14:45:00 +00:00
src/Makefile: grammer.cf
bnfc $< -p Language.Lang -o src -m
src/Language/Lang/TestGrammer: ./src/Makefile
cd src && make all
.PHONY: install parse
install: src/Language/Lang/TestGrammer
install $< ~/.local/bin/lang-parse
parse: install
lang-parse lang/small.lang