projects
/
m6w6
/
ext-psi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
configure: add --enable-psi-maintainer-mode
[m6w6/ext-psi]
/
Makefile.frag
diff --git
a/Makefile.frag
b/Makefile.frag
index c31b9d971f092e2f711cb5bd35d65e26c4d8d9a2..289821170b492da9f0ecc60368fba5b124c4d5c1 100644
(file)
--- 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
# -- 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:
.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
psi-clean: psi-clean-depend
@@
-75,10
+75,10
@@
$(PHP_PSI_BUILDDIR)/%.dep: $(PHP_PSI_SRCDIR)/%.c
$(CPPFLAGS) $(DEFS) $(INCLUDES) $< \
|| touch $@
$(CPPFLAGS) $(DEFS) $(INCLUDES) $< \
|| touch $@
-DEPS =
-ifneq
($(
DEPS),)
+ifneq ($(findstring clean,$(MAKECMDGOALS)),clean)
+ifneq
($(PSI_
DEPS),)
-include $(PHP_PSI_DEPEND)
-include $(PHP_PSI_DEPEND)
--include $(PHP_PSI_BUILDDIR)/php_psi.dep
+endif
endif
endif