diff options
Diffstat (limited to 'src/Makefile')
-rw-r--r-- | src/Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile index 387fbec..4c5fe37 100644 --- a/src/Makefile +++ b/src/Makefile @@ -51,6 +51,12 @@ all: $(EXECUTABLE) cfg_parser.c: cfg_parser.rl $(RAGEL) -C -G2 -o $@ $< +cfg_parser.dot: cfg_parser.rl + $(RAGEL) -V -p -o $@ $< + +cfg_parser.png: cfg_parser.dot + @dot -Tpng $< > $@ + %.d: %.c @set -e; rm -f $@; \ $(CC) -MM $(CFLAGS) $< > $@.$$$$; \ @@ -82,6 +88,7 @@ clean: rm -f *.d rm -f *.d.* rm -f cfg_parser.c + rm -f cfg_parser.png cfg_parser.dot rm -f $(EXECUTABLE) cleanall: clean |