Makefile: implement make install

The make install target was missing. This commits adds the intall target
which uses the install target from subprojects.

Also a make install target was created in each tool program.

Signed-off-by: Miguel Bernal Marin <miguel.bernal.marin@linux.intel.com>
This commit is contained in:
Miguel Bernal Marin 2018-05-16 14:21:45 -05:00 committed by lijinxia
parent f7a93d8f33
commit ace25dd3db
4 changed files with 27 additions and 3 deletions

View File

@ -30,5 +30,17 @@ tools:
clean:
rm -rf $(ROOT_OUT)
.PHONY: install
install: hypervisor-install devicemodel-install tools-intall
hypervisor-install:
make -C $(T)/hypervisor HV_OBJDIR=$(HV_OUT) PLATFORM=$(PLAT) RELEASE=$(RELEASE) install
devicemodel-install:
make -C $(T)/devicemodel DM_OBJDIR=$(DM_OUT) install
tools-intall:
make -C $(T)/tools/acrnlog OUT_DIR=$(TOOLS_OUT) install
make -C $(T)/tools/acrn-manager OUT_DIR=$(TOOLS_OUT) install
make -C $(T)/tools/acrntrace OUT_DIR=$(TOOLS_OUT) install

View File

@ -5,4 +5,8 @@ all: acrnctl.c
gcc -o $(OUT_DIR)/acrnctl acrnctl.c -I../../devicemodel/include -Wall -g
clean:
rm -f acrnctl
rm -f $(OUT_DIR)/acrnctl
install: $(OUT_DIR)/acrnctl
install -d $(DESTDIR)/usr/bin
install -t $(DESTDIR)/usr/bin $(OUT_DIR)/acrnctl

View File

@ -5,4 +5,8 @@ all:
gcc -g acrnlog.c -o $(OUT_DIR)/acrnlog -lpthread
clean:
rm acrnlog
rm $(OUT_DIR)/acrnlog
install: $(OUT_DIR)/acrnlog
install -d $(DESTDIR)/usr/bin
install -t $(DESTDIR)/usr/bin $(OUT_DIR)/acrnlog

View File

@ -5,4 +5,8 @@ all:
gcc -o $(OUT_DIR)/acrntrace acrntrace.c sbuf.c -I. -lpthread
clean:
rm acrntrace
rm $(OUT_DIR)/acrntrace
install: $(OUT_DIR)/acrntrace
install -d $(DESTDIR)/usr/bin
install -t $(DESTDIR)/usr/bin $(OUT_DIR)/acrntrace