summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2018-05-20 10:50:06 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2018-05-21 17:19:14 +0000
commit390bd16d3776b8ad0a85c84d70724c85021a1639 (patch)
tree14f74ae97eb1eeb741f9572bf70fe4fbac0c6e83 /Makefile
parentca1c6ef5beae105f36cc6f27d53eab52b35e4ac7 (diff)
downloadpodman-390bd16d3776b8ad0a85c84d70724c85021a1639.tar.gz
podman-390bd16d3776b8ad0a85c84d70724c85021a1639.tar.bz2
podman-390bd16d3776b8ad0a85c84d70724c85021a1639.zip
tidy up the copr spec
on os's (like centos) where python3 might not be installed, do not attempt to build the python3 varlink client. varlink python is only supported on python3. also, change the conditions for f28 to match the fedora official specs. Signed-off-by: baude <bbaude@redhat.com> Closes: #813 Approved by: baude
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3833ac78d..f10f30949 100644
--- a/Makefile
+++ b/Makefile
@@ -19,6 +19,7 @@ TMPFILESDIR ?= ${PREFIX}/lib/tmpfiles.d
SYSTEMDDIR ?= ${PREFIX}/lib/systemd/system
BUILDTAGS ?= seccomp $(shell hack/btrfs_tag.sh) $(shell hack/libdm_tag.sh) $(shell hack/btrfs_installed_tag.sh) $(shell hack/ostree_tag.sh) $(shell hack/selinux_tag.sh)
PYTHON ?= /usr/bin/python3
+HAS_PYTHON3 := $(shell command -v python3)
BASHINSTALLDIR=${PREFIX}/share/bash-completion/completions
OCIUMOUNTINSTALLDIR=$(PREFIX)/share/oci-umount/oci-umount.d
@@ -95,7 +96,9 @@ podman: .gopathok API.md cmd/podman/varlink/ioprojectatomicpodman.go
$(GO) build -i -ldflags '$(LDFLAGS_PODMAN)' -tags "$(BUILDTAGS)" -o bin/$@ $(PROJECT)/cmd/podman
python-podman:
+ifdef HAS_PYTHON3
$(MAKE) -C contrib/python python-podman
+endif
clean:
rm -rf \
@@ -108,7 +111,9 @@ clean:
test/copyimg/copyimg \
test/testdata/redis-image \
$(MANPAGES)
- $(MAKE) -C contrib/python clean
+ifdef HAS_PYTHON3
+ $(MAKE) -C contrib/python clean
+endif
find . -name \*~ -delete
find . -name \#\* -delete