forked from hyperhq/hyperd
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.am
More file actions
31 lines (26 loc) · 748 Bytes
/
Makefile.am
File metadata and controls
31 lines (26 loc) · 748 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
export GOPATH:=$(abs_top_srcdir)/Godeps/_workspace:$(GOPATH)
if WITH_XEN
XEN_BUILD_TAG=with_xen
else
XEN_BUILD_TAG=
endif
if WITH_LIBVIRT
LIBVIRT_BUILD_TAG=with_libvirt
else
LIBVIRT_BUILD_TAG=
endif
HYPER_BULD_TAGS=$(XEN_BUILD_TAG) $(LIBVIRT_BUILD_TAG) libdm_no_deferred_remove exclude_graphdriver_btrfs
if ON_DARWIN
SUBDIRS=mac_installer
endif
VERSION_PARAM=-ldflags "-X github.com/hyperhq/hyperd/utils.VERSION $(VERSION)"
all-local: build-hyperd build-hyperctl
clean-local:
-rm -f hyperd hyperctl
install-exec-local:
$(INSTALL_PROGRAM) hyperctl $(bindir)
$(INSTALL_PROGRAM) hyperd $(bindir)
build-hyperd:
go build -tags "static_build $(HYPER_BULD_TAGS)" $(VERSION_PARAM) hyperd.go
build-hyperctl:
go build $(VERSION_PARAM) hyperctl.go