Skip to content

Commit

Permalink
make: Add make target for virtcontainers in top-level Makefile
Browse files Browse the repository at this point in the history
Running make from top source directory should build virtcontainers
library and the cli.
Add new `install-vc` target that will install virtcontainers test
binaries.

Fixes kata-containers#81

Signed-off-by: Archana Shinde <[email protected]>
  • Loading branch information
amshinde committed Mar 29, 2018
1 parent c4f922d commit a5cf12b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -198,13 +198,19 @@ define SHOW_ARCH
$(shell printf "\\t%s%s\\\n" "$(1)" $(if $(filter $(ARCH),$(1))," (default)",""))
endef

all: runtime
all: vc runtime

runtime: $(TARGET_OUTPUT) $(CONFIG)
.DEFAULT: default

build: default

vc:
make -C virtcontainers

install-vc:
make -C virtcontainers install

define GENERATED_CODE
// WARNING: This file is auto-generated - DO NOT EDIT!
//
Expand Down Expand Up @@ -306,6 +312,7 @@ $(TARGET_OUTPUT): $(EXTRA_DEPS) $(SOURCES) $(GENERATED_GO_FILES) $(GENERATED_FIL
coverage \
default \
install \
install-vc \
show-header \
show-summary \
show-variables
Expand Down

0 comments on commit a5cf12b

Please sign in to comment.