diff options
author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-12-20 12:32:41 +0200 |
---|---|---|
committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-12-20 12:32:41 +0200 |
commit | 0f5ce98342a7742c4e3af0dd33b5b642419d5286 (patch) | |
tree | f19f2f5aa9bca9f002827725c18541f709328dfa | |
parent | 8ecf1531d93acda9f904f11efb2a34dfec169153 (diff) | |
download | fwd-0f5ce98342a7742c4e3af0dd33b5b642419d5286.tar.gz fwd-0f5ce98342a7742c4e3af0dd33b5b642419d5286.zip |
fix generated files in .gitignore
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | gen/source.mk | 9 |
2 files changed, 11 insertions, 2 deletions
@@ -1,7 +1,7 @@ deps.mk docs/output build -gen fwd -!gen/source.mk +gen/*.c +gen/*.inc !include/fwd 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 |