diff options
author | Bill Richardson <wfrichar@chromium.org> | 2015-02-27 13:57:13 -0800 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-02-28 00:56:08 +0000 |
commit | 822120106c963b43c3d303a791f8dd8731d0888e (patch) | |
tree | bbe84a1e7b82da826de3e1615ac3714619c619c6 | |
parent | 0840b842c1609accee80b148bc26f5e84f42e309 (diff) | |
download | vboot-822120106c963b43c3d303a791f8dd8731d0888e.tar.gz |
Do not litter the source directory with build artifacts
Before, building locally left a file named "vboot_host.pc" in the
top directory.
With this change, it's put into the $BUILD directory where it
belongs.
It still gets installed into the same place, of course.
BUG=chromium:459338
BRANCH=none
TEST=make runtests, and
Run:
make test_setup MINIMAL=
make test_setup MINIMAL=1
find . -name vboot_host.pc
Before this CL:
./build/install_for_test/usr/lib/pkgconfig/vboot_host.pc
./build/install_for_test/lib/pkgconfig/vboot_host.pc
./vboot_host.pc
After this CL:
./build/install_for_test/usr/lib/pkgconfig/vboot_host.pc
./build/install_for_test/lib/pkgconfig/vboot_host.pc
./build/vboot_host.pc
Change-Id: I3a888f72a5753228eec5187178d0da22de782171
Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/254712
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Nam Nguyen <namnguyen@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1419,7 +1419,7 @@ tags TAGS xrefs: ${BUILD}/cscope.files ${Q}$(call run_if_prog,etags,${cmd_etags}) ${Q}$(call run_if_prog,ctags,${cmd_ctags}) -PC_FILES = ${PC_IN_FILES:%.pc.in=%.pc} +PC_FILES = ${PC_IN_FILES:%.pc.in=${BUILD}/%.pc} ${PC_FILES}: ${PC_IN_FILES} ${Q}sed \ -e 's:@LDLIBS@:${LDLIBS}:' \ @@ -1429,4 +1429,4 @@ ${PC_FILES}: ${PC_IN_FILES} .PHONY: pc_files_install pc_files_install: ${PC_FILES} ${Q}mkdir -p ${ULP_DIR} - ${Q}${INSTALL} -D -m 0644 $< ${ULP_DIR}/$< + ${Q}${INSTALL} -D -m 0644 $< ${ULP_DIR}/$(notdir $<) |