X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=Makefile.frag;h=289821170b492da9f0ecc60368fba5b124c4d5c1;hp=c31b9d971f092e2f711cb5bd35d65e26c4d8d9a2;hb=3ef8c66ab1300801bcdb15b43f9f28e77b6487b6;hpb=991b10eeadb51b0b3309f140391ecf0b4c1e1859 diff --git a/Makefile.frag b/Makefile.frag index c31b9d9..2898211 100644 --- a/Makefile.frag +++ b/Makefile.frag @@ -62,11 +62,11 @@ $(PHP_PSI_SRCDIR)/src/context.c: $(PHP_PSI_SRCDIR)/php_psi_consts.h $(PHP_PSI_SR # -- deps -PHP_PSI_DEPEND = $(patsubst $(PHP_PSI_SRCDIR)/%,$(PHP_PSI_BUILDDIR)/%,$(PHP_PSI_SOURCES:.c=.dep)) +PHP_PSI_DEPEND = $(PHP_PSI_BUILDDIR)/php_psi.dep $(patsubst $(PHP_PSI_SRCDIR)/%,$(PHP_PSI_BUILDDIR)/%,$(PHP_PSI_SOURCES:.c=.dep)) .PHONY: psi-clean-depend psi-clean-depend: - -rm -f $(PHP_PSI_DEPEND) $(PHP_PSI_BUILDDIR)/php_psi.dep + -rm -f $(PHP_PSI_DEPEND) psi-clean: psi-clean-depend @@ -75,10 +75,10 @@ $(PHP_PSI_BUILDDIR)/%.dep: $(PHP_PSI_SRCDIR)/%.c $(CPPFLAGS) $(DEFS) $(INCLUDES) $< \ || touch $@ -DEPS = -ifneq ($(DEPS),) +ifneq ($(findstring clean,$(MAKECMDGOALS)),clean) +ifneq ($(PSI_DEPS),) -include $(PHP_PSI_DEPEND) --include $(PHP_PSI_BUILDDIR)/php_psi.dep +endif endif