X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=Makefile.frag;h=e904edfccb1ef8b631a5a2c7883d4f0e2deb6887;hp=81aa007cd2a0c6b5acf98ce2453a44dc701d4c82;hb=3b0b651ea1b555d8d023e45b43e5eb93b23d00a1;hpb=7df12c88a4e14611a2585d6e7c994c59e8d7485a diff --git a/Makefile.frag b/Makefile.frag index 81aa007..e904edf 100644 --- a/Makefile.frag +++ b/Makefile.frag @@ -60,3 +60,16 @@ $(PHP_PSI_SRCDIR)/src/parser.c: $(PHP_PSI_SRCDIR)/src/parser.re $(PHP_PSI_SRCDIR)/src/types/decl.c: $(PHP_PSI_SRCDIR)/php_psi_macros.h $(PHP_PSI_SRCDIR)/php_psi_redirs.h $(PHP_PSI_SRCDIR)/src/context.c: $(PHP_PSI_SRCDIR)/php_psi_consts.h $(PHP_PSI_SRCDIR)/php_psi_decls.h $(PHP_PSI_SRCDIR)/php_psi_fn_decls.h $(PHP_PSI_SRCDIR)/php_psi_structs.h $(PHP_PSI_SRCDIR)/php_psi_types.h $(PHP_PSI_SRCDIR)/php_psi_unions.h $(PHP_PSI_SRCDIR)/php_psi_va_decls.h + +PHP_PSI_DEPEND = $(PHP_PSI_BUILDDIR)/Makefile.deps + +depend: psi-depend +.PHONY: psi-depend +psi-depend: $(PHP_PSI_DEPEND) + +$(PHP_PSI_DEPEND): $(PHP_PSI_SOURCES) + $(CC) -MM -MG $(CPPFLAGS) $(DEFS) $(INCLUDES) $^ \ + | $(SED) -e 's/^\(.*\).o: /\1.lo: /' \ + > $@ + +-include $(PHP_PSI_DEPEND)