From 0f5ce98342a7742c4e3af0dd33b5b642419d5286 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Fri, 20 Dec 2024 12:32:41 +0200 Subject: fix generated files in .gitignore --- gen/source.mk | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 gen/source.mk (limited to 'gen/source.mk') diff --git a/gen/source.mk b/gen/source.mk new file mode 100644 index 0000000..55fe692 --- /dev/null +++ b/gen/source.mk @@ -0,0 +1,9 @@ +gen/gen_parser.c: src/parser.y gen/gen_lexer.inc + bison -Wcounterexamples -o gen/gen_parser.c src/parser.y + +gen/gen_lexer.inc: src/lexer.l + flex -o gen/gen_lexer.inc src/lexer.l + +build/gen/parser.o: gen/gen_parser.c + mkdir -p build/gen + $(COMPILE_FWD) $(SKIP_ANALYZER) -c gen/gen_parser.c -o build/gen/parser.o -- cgit v1.2.3