From 371df8bbbf9088dc1206701bdc2294d9598bb339 Mon Sep 17 00:00:00 2001 From: Bill Richardson Date: Thu, 27 May 2010 14:19:47 -0700 Subject: [PATCH] Add install target to put utilities into chroot (in /opt/bin/) Review URL: http://codereview.chromium.org/2225008 --- Makefile | 3 +++ utility/Makefile | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 72c25fb40a..6df17c8202 100644 --- a/Makefile +++ b/Makefile @@ -25,3 +25,6 @@ clean: for i in $(SUBDIRS); do \ make -C $$i clean; \ done + +install: + $(MAKE) -C utility install diff --git a/utility/Makefile b/utility/Makefile index adfeea3041..558f959b0d 100644 --- a/utility/Makefile +++ b/utility/Makefile @@ -42,7 +42,7 @@ firmware_utility: firmware_utility.cc $(LIBS) $(FWLIB) kernel_utility: kernel_utility.cc $(LIBS) $(FWLIB) $(CXX) $(CFLAGS) $(INCLUDES) -ggdb -D__STDC_LIMIT_MACROS $< \ - -o $@ $(LIBS) $(FWLIB) -lcrypto + -o $@ $(LIBS) $(FWLIB) -lcrypto signature_digest_utility: signature_digest_utility.c $(LIBS) $(FWLIB) $(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) $(FWLIB) -lcrypto @@ -56,3 +56,7 @@ clean: $(MAKE) -C $$i clean; \ done rm -f $(TARGET_BINS) + +install: $(TARGET_BINS) + mkdir -p $(DESTDIR) + cp -f $^ $(DESTDIR)