fix leak
[m6w6/ext-psi] / Makefile.frag
index 79af1be30d759bc6147f83426290a480754da552..0f572d1d8b4a64fa88fb80e52ec7058afdd30aab 100644 (file)
@@ -22,9 +22,14 @@ lemon.c:
        curl -sSo $@ "http://www.sqlite.org/src/raw/tool/lemon.c?name=039f813b520b9395740c52f9cbf36c90b5d8df03"
 
 ./lemon: lemon.c | lempar.c
+       $(CC) -o $@ $<
 
+$(PHP_PSI_SRCDIR)/src/parser_proc.y: $(PHP_PSI_BUILDDIR)/parser.h
+       touch $@
 $(PHP_PSI_SRCDIR)/src/parser_proc.c: $(PHP_PSI_SRCDIR)/src/parser_proc.y $(LEMON)
        $(LEMON) -c $<
 
+$(PHP_PSI_SRCDIR)/src/parser.re: $(PHP_PSI_BUILDDIR)/parser.h $(PHP_PSI_BUILDDIR)/parser_proc.h
+       touch $@
 $(PHP_PSI_SRCDIR)/src/parser.c: $(PHP_PSI_SRCDIR)/src/parser.re
        $(RE2C) -o $@ $<