X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=Makefile.frag;h=39ba8c0731bd897dcd0b0a23a55d3bbe6a2a3119;hb=1b6db76e3005344b33ab45b00e7e61386a33932a;hp=c30e69485338dc2e686817f093d42a5799877046;hpb=4d2c075c160bbc1ff49c3499f8fdd07d9c447a12;p=m6w6%2Fext-psi diff --git a/Makefile.frag b/Makefile.frag index c30e694..39ba8c0 100644 --- a/Makefile.frag +++ b/Makefile.frag @@ -1,4 +1,4 @@ -# provide headers in builddir, so they do not end up in /usr/include/ext/psi/src +git# provide headers in builddir, so they do not end up in /usr/include/ext/psi/src PHP_PSI_HEADERS := $(addprefix $(PHP_PSI_BUILDDIR)/,$(PHP_PSI_HEADERS)) PHP_PSI_SOURCES := $(addprefix $(PHP_PSI_SRCDIR)/,$(PHP_PSI_SOURCES)) @@ -23,7 +23,8 @@ $(PHP_PSI_BUILDDIR)/lemon: $(PHP_PSI_BUILDDIR)/lemon.c | $(PHP_PSI_BUILDDIR)/lem $(PHP_PSI_SRCDIR)/src/parser_proc.h: $(PHP_PSI_SRCDIR)/src/parser_proc.c $(PHP_PSI_SRCDIR)/src/parser_proc.inc: -$(PHP_PSI_SRCDIR)/src/parser_proc.y: $(PHP_PSI_SRCDIR)/src/parser_def.h $(PHP_PSI_SRCDIR)/src/parser_proc.inc +$(PHP_PSI_SRCDIR)/src/parser_proc_def.h: $(PHP_PSI_SRCDIR)/src/parser_def.h +$(PHP_PSI_SRCDIR)/src/parser_proc.y: $(PHP_PSI_SRCDIR)/src/parser_proc_def.h $(PHP_PSI_SRCDIR)/src/parser_proc.inc cat $(PHP_PSI_SRCDIR)/src/parser_proc.inc >$@ $(CPP) -P -DGENERATE $< >>$@ $(PHP_PSI_SRCDIR)/src/parser_proc.c: $(PHP_PSI_SRCDIR)/src/parser_proc.y $(LEMON) @@ -70,10 +71,6 @@ ifneq ($(PSI_DEPS),) endif endif -install-headers: psi-build-headers -.PHONY: psi-clean -clean: psi-clean - .PHONY: psi-build-headers psi-build-headers: $(PHP_PSI_HEADERS) @@ -81,6 +78,7 @@ psi-build-headers: $(PHP_PSI_HEADERS) psi-clean-headers: -rm -f $(PHP_PSI_HEADERS) +.PHONY: psi-clean psi-clean: psi-clean-headers .PHONY: psi-clean-objects @@ -95,8 +93,15 @@ psi-clean-generated: -rm -f $(PHP_PSI_GENERATED) .PHONY: psi-clean-aux -psi-clean-aux: - -rm -f $(PHP_PSI_BUILDDIR)/lempar.c $(PHP_PSI_BUILDDIR)/lemon.c $(PHP_PSI_BUILDDIR)/lemon +psi-clean-aux: psi-clean-aux-bin psi-clean-aux-src + +.PHONY: psi-clean-aux-src +psi-clean-aux-src: + -rm -f $(PHP_PSI_BUILDDIR)/lempar.c $(PHP_PSI_BUILDDIR)/lemon.c + +.PHONY: psi-clean-aux-bin +psi-clean-aux-bin: + -rm -f $(PHP_PSI_BUILDDIR)/lemon psi-clean: psi-clean-aux @@ -106,3 +111,8 @@ psi-clean-depend: psi-clean: psi-clean-depend +install-headers: psi-build-headers +clean: psi-clean-headers psi-clean-aux +ifneq ($(PSI_DEPS),) +clean: psi-clean-depend +endif