-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce a small GNU/Make shim for building on FreeBSD
Execute via `gmake -f Makefile.freebsd`
- Loading branch information
R. Tyler Croy
committed
Sep 5, 2017
1 parent
9648f08
commit 9ceed4a
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# This file exists to support the non-Docker-based build requirements for | ||
# FreeBSD/Docker | ||
# | ||
export AUTO_GOPATH=1 | ||
export RUNC_PATH="$(GOPATH)/src/github.com/opencontainers/runc" | ||
export CONTAINERD_PATH="$(GOPATH)/src/github.com/containerd/containerd" | ||
|
||
binary: containerd runc | ||
./hack/make.sh binary | ||
|
||
containerd: | ||
if [ ! -d $(CONTAINERD_PATH) ]; then \ | ||
git clone https://github.com/freebsd-docker/containerd.git $(CONTAINERD_PATH); \ | ||
fi; | ||
cd $(CONTAINERD_PATH) && \ | ||
$(MAKE) | ||
|
||
runc: | ||
if [ ! -d $(RUNC_PATH) ]; then \ | ||
git clone https://github.com/freebsd-docker/runc.git $(RUNC_PATH); \ | ||
fi; | ||
cd $(RUNC_PATH) && \ | ||
$(MAKE) |