ref: fc97e3a60206736a0a9baf7b106430ecdabac02d
parent: 3a42ae54cfc5bb28b57f68292fe695a9adb1fecd
parent: 9ed902a8d7b6f936a6abd9aab79bb132407abe6a
author: sijchen <sijchen@cisco.com>
date: Fri May 29 05:31:09 EDT 2015
Merge pull request #1967 from mstorsjo/outoftree-install Use vpath instead of explicit $(SRC_PATH) for building .pc files out of tree
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,7 @@
vpath %.asm $(SRC_PATH)
vpath %.S $(SRC_PATH)
vpath %.rc $(SRC_PATH)
+vpath %.pc.in $(SRC_PATH)
OS=$(shell uname | tr A-Z a-z | tr -d \\-[:digit:].)
ARCH=$(shell uname -m)
@@ -241,10 +242,10 @@
$(QUIET)ln -sfn $+ $@
endif
-$(PROJECT_NAME).pc: $(SRC_PATH)/$(PROJECT_NAME).pc.in
+$(PROJECT_NAME).pc: $(PROJECT_NAME).pc.in
@sed -e 's;@prefix@;$(PREFIX);' -e 's;@VERSION@;$(VERSION);' -e 's;@LIBS@;;' -e 's;@LIBS_PRIVATE@;$(STATIC_LDFLAGS);' < $< > $@
-$(PROJECT_NAME)-static.pc: $(SRC_PATH)/$(PROJECT_NAME).pc.in
+$(PROJECT_NAME)-static.pc: $(PROJECT_NAME).pc.in
@sed -e 's;@prefix@;$(PREFIX);' -e 's;@VERSION@;$(VERSION);' -e 's;@LIBS@;$(STATIC_LDFLAGS);' -e 's;@LIBS_PRIVATE@;;' < $< > $@
install-headers: