Skip to content

Commit

Permalink
Introduce a small GNU/Make shim for building on FreeBSD
Browse files Browse the repository at this point in the history
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.
23 changes: 23 additions & 0 deletions Makefile.freebsd
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)

0 comments on commit 9ceed4a

Please sign in to comment.