summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMing Liu <liu.ming50@gmail.com>2021-03-02 13:27:15 +0100
committerMing Liu <liu.ming50@gmail.com>2021-03-02 16:24:15 +0100
commitac992e4b02f16036b791968743a083f69a5ccc3c (patch)
treebf13a79a46918fa1dd01619c329ad6e44e605340 /Makefile
parent3908c00799fe2af1a12c9c4f4be8b49dbdecd9be (diff)
downloadpodman-ac992e4b02f16036b791968743a083f69a5ccc3c.tar.gz
podman-ac992e4b02f16036b791968743a083f69a5ccc3c.tar.bz2
podman-ac992e4b02f16036b791968743a083f69a5ccc3c.zip
Makefile: install systemd services conditionally
Only install systemd services provided that systemd is in BUILDTAGS. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 4cc68bc2f..268cfe7f9 100644
--- a/Makefile
+++ b/Makefile
@@ -554,6 +554,7 @@ install.docker-docs: docker-docs
install ${SELINUXOPT} -m 644 docs/build/man/docker*.1 -t $(DESTDIR)$(MANDIR)/man1
.PHONY: install.systemd
+ifneq (,$(findstring systemd,$(BUILDTAGS)))
install.systemd:
install ${SELINUXOPT} -m 755 -d ${DESTDIR}${SYSTEMDDIR} ${DESTDIR}${USERSYSTEMDDIR}
# User services
@@ -566,6 +567,9 @@ install.systemd:
install ${SELINUXOPT} -m 644 contrib/systemd/auto-update/podman-auto-update.timer ${DESTDIR}${SYSTEMDDIR}/podman-auto-update.timer
install ${SELINUXOPT} -m 644 contrib/systemd/system/podman.socket ${DESTDIR}${SYSTEMDDIR}/podman.socket
install ${SELINUXOPT} -m 644 contrib/systemd/system/podman.service ${DESTDIR}${SYSTEMDDIR}/podman.service
+else
+install.systemd:
+endif
.PHONY: uninstall
uninstall: