Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(934)

Unified Diff: src/platform/vboot_reference/utility/Makefile

Issue 2490001: Add cgpt utility to installable binaries. (Closed) Base URL: ssh://git@chromiumos-git/chromeos
Patch Set: Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/platform/vboot_reference/utility/cgpt/Makefile » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/vboot_reference/utility/Makefile
diff --git a/src/platform/vboot_reference/utility/Makefile b/src/platform/vboot_reference/utility/Makefile
index 3cdbb82d6061337b32bbbccecbe7d9f41f24330c..8406e0e6bc12c99311b14f19a7daee4f69d60a02 100644
--- a/src/platform/vboot_reference/utility/Makefile
+++ b/src/platform/vboot_reference/utility/Makefile
@@ -20,6 +20,8 @@ LIBS = $(TOP)/misclibs/file_keys.o \
$(TOP)/vkernel/kernel_image.o
SUBDIRS = cgpt
+DESTDIR ?= /opt/bin
+
TARGET_BINS = dumpRSAPublicKey \
firmware_utility \
gbb_utility \
@@ -33,7 +35,7 @@ all: $(TARGET_BINS) subdirs
subdirs:
set -e; \
for i in $(SUBDIRS); do \
- $(MAKE) -C $$i; \
+ $(MAKE) -C $$i $(MAKECMDGOALS); \
done
dumpRSAPublicKey: dumpRSAPublicKey.c
@@ -63,7 +65,7 @@ clean:
done
rm -f $(TARGET_BINS)
-install: $(TARGET_BINS)
+install: $(TARGET_BINS) subdirs
mkdir -p $(DESTDIR)
- cp -f $^ $(DESTDIR)
- chmod a+rx $(patsubst %,$(DESTDIR)/%,$^)
+ cp -f $(TARGET_BINS) $(DESTDIR)
+ chmod a+rx $(patsubst %,$(DESTDIR)/%,$(TARGET_BINS))
« no previous file with comments | « no previous file | src/platform/vboot_reference/utility/cgpt/Makefile » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698