aboutsummaryrefslogtreecommitdiff
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
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
-rw-r--r--Makefile19
-rw-r--r--libpod/container_ffjson.go2
-rw-r--r--libpod/pod_ffjson.go2
3 files changed, 19 insertions, 4 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
diff --git a/libpod/container_ffjson.go b/libpod/container_ffjson.go
index d843beb48..2af9d63f5 100644
--- a/libpod/container_ffjson.go
+++ b/libpod/container_ffjson.go
@@ -1,5 +1,5 @@
// Code generated by ffjson <https://github.com/pquerna/ffjson>. DO NOT EDIT.
-// source: libpod/container.go
+// source: /home/mcs/code/gopath//src/github.com/projectatomic/libpod/libpod/container.go
package libpod
diff --git a/libpod/pod_ffjson.go b/libpod/pod_ffjson.go
index 4cdfb9318..b3012bf5f 100644
--- a/libpod/pod_ffjson.go
+++ b/libpod/pod_ffjson.go
@@ -1,5 +1,5 @@
// Code generated by ffjson <https://github.com/pquerna/ffjson>. DO NOT EDIT.
-// source: libpod/pod.go
+// source: /home/mcs/code/gopath//src/github.com/projectatomic/libpod/libpod/pod.go
package libpod