aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2018-08-09 10:36:51 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2018-08-09 15:54:34 +0000
commit7df49bc677586ec9a1fa5cbb69fe1177d2786db4 (patch)
tree6ec046bf992465137522d0fa9a1fb5f10d78b0cb /Makefile
parent3a6bd89f64c94c0ccf9c861ea3219daa5c3c68f0 (diff)
downloadpodman-7df49bc677586ec9a1fa5cbb69fe1177d2786db4.tar.gz
podman-7df49bc677586ec9a1fa5cbb69fe1177d2786db4.tar.bz2
podman-7df49bc677586ec9a1fa5cbb69fe1177d2786db4.zip
Add FFJSON generation to makefile
Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #1240 Approved by: rhatdan
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 17 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index fecf3831f..9612d5654 100644
--- a/Makefile
+++ b/Makefile
@@ -181,7 +181,7 @@ clientintegration:
vagrant-check:
BOX=$(BOX) sh ./vagrant.sh
-binaries: varlink_generate podman python
+binaries: varlink_generate ffjson_generate podman python
test-binaries: test/bin2img/bin2img test/copyimg/copyimg test/checkseccomp/checkseccomp
@@ -260,7 +260,7 @@ uninstall:
.PHONY: install.tools
-install.tools: .install.gitvalidation .install.gometalinter .install.md2man
+install.tools: .install.gitvalidation .install.gometalinter .install.md2man .install.ffjson
.install.gitvalidation: .gopathok
if [ ! -x "$(GOBIN)/git-validation" ]; then \
@@ -281,6 +281,11 @@ install.tools: .install.gitvalidation .install.gometalinter .install.md2man
$(GO) get -u github.com/cpuguy83/go-md2man; \
fi
+.install.ffjson: .gopathok
+ if [ ! -x "$(GOBIN)/ffjson" ]; then\
+ $(GO) get -u github.com/pquerna/ffjson; \
+ fi
+
.install.ostree: .gopathok
if ! pkg-config ostree-1 2> /dev/null ; then \
git clone https://github.com/ostreedev/ostree $(FIRST_GOPATH)/src/github.com/ostreedev/ostree ; \
@@ -292,6 +297,16 @@ install.tools: .install.gitvalidation .install.gometalinter .install.md2man
varlink_generate: .gopathok cmd/podman/varlink/iopodman.go
varlink_api_generate: .gopathok API.md
+ffjson_generate: libpod/container_ffjson.go libpod/pod_ffjson.go
+
+libpod/container_ffjson.go: .gopathok libpod/container.go
+ rm -f libpod/container_ffjson.go
+ ffjson $(GOPKGDIR)/libpod/container.go
+
+libpod/pod_ffjson.go: .gopathok libpod/pod.go
+ rm -f libpod/pod_ffjson.go
+ ffjson $(GOPKGDIR)/libpod/pod.go
+
.PHONY: install.libseccomp.sudo
install.libseccomp.sudo:
rm -rf ../../seccomp/libseccomp