X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=Makefile.frag;fp=Makefile.frag;h=3ef9ecbd3ed2213378a5ade26c56e96248e4cb11;hp=0000000000000000000000000000000000000000;hb=bdd6edb59194cda9e5fcb393c48ab4230fceb32a;hpb=c05ef71b26a8d16bf5af2bd8275e08ba5ae02b52 diff --git a/Makefile.frag b/Makefile.frag new file mode 100644 index 0000000..3ef9ecb --- /dev/null +++ b/Makefile.frag @@ -0,0 +1,16 @@ +# provide headers in builddir, so they do not end up in /usr/include/ext/http/src + +PHP_HTTP_HEADERS := $(addprefix $(PHP_HTTP_BUILDDIR)/,$(PHP_HTTP_HEADERS)) + +$(PHP_HTTP_BUILDDIR)/%.h: $(PHP_HTTP_SRCDIR)/src/%.h + @cat >$@ <$< + +all: http-build-headers +clean: http-clean-headers + +.PHONY: http-build-headers +http-build-headers: $(PHP_HTTP_HEADERS) + +.PHONY: http-clean-headers +http-clean-headers: + -rm $(PHP_HTTP_HEADERS)