X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=Makefile.frag;h=d192749f055844e19afee4154f5af134d02b504f;hp=65e5ed7751993fdbe4d12d2ad660e5350d57dfc0;hb=9c6a90318dc5e20b73820d7c2bb8eb3b30888cb3;hpb=de4f7cc512bbffb5e71290ac48e659dae5e9601d diff --git a/Makefile.frag b/Makefile.frag index 65e5ed7..d192749 100644 --- a/Makefile.frag +++ b/Makefile.frag @@ -63,22 +63,23 @@ $(PHP_PSI_SRCDIR)/src/context.c: $(PHP_PSI_SRCDIR)/php_psi_consts.h $(PHP_PSI_SR # -- deps -PHP_PSI_DEPEND = $(PHP_PSI_SOURCES:.c=.d) +PHP_PSI_DEPEND = $(patsubst $(PHP_PSI_SRCDIR)/%,$(PHP_PSI_BUILDDIR)/%,$(PHP_PSI_SOURCES:.c=.dep)) .PHONY: psi-clean-depend psi-clean-depend: - -rm -f $(PHP_PSI_DEPEND) + -rm -f $(PHP_PSI_DEPEND) $(PHP_PSI_BUILDDIR)/php_psi.dep psi-clean: psi-clean-depend -%.d: %.c - $(CC) -MM -MG -MF $@ -MT $(patsubst $(PHP_PSI_SRCDIR)/%,$(PHP_PSI_BUILDDIR)/%,$(@:.d=.lo)) \ +$(PHP_PSI_BUILDDIR)/%.dep: $(PHP_PSI_SRCDIR)/%.c + $(CC) -MM -MG -MF $@ -MT $(patsubst $(PHP_PSI_SRCDIR)/%,$(PHP_PSI_BUILDDIR)/%,$(@:.dep=.lo)) \ $(CPPFLAGS) $(DEFS) $(INCLUDES) $< \ || touch $@ DEPS = ifneq ($(DEPS),) -include $(PHP_PSI_DEPEND) +-include $(PHP_PSI_BUILDDIR)/php_psi.dep endif