From: fwcd Date: Wed, 3 Nov 2021 20:05:13 +0000 (+0100) Subject: Use libdir during systemd service install X-Git-Tag: 1.2~90^2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F10%2Fhead;p=thirdparty%2Fnqptp.git Use libdir during systemd service install --- diff --git a/Makefile.am b/Makefile.am index cb907f4..660d6cf 100644 --- a/Makefile.am +++ b/Makefile.am @@ -20,8 +20,8 @@ endif install-exec-hook: if BUILD_FOR_LINUX if INSTALL_SYSTEMD_STARTUP - [ -e $(DESTDIR)/lib/systemd/system ] || mkdir -p $(DESTDIR)/lib/systemd/system - cp nqptp.service $(DESTDIR)/lib/systemd/system + [ -e $(DESTDIR)$(libdir)/systemd/system ] || mkdir -p $(DESTDIR)$(libdir)/systemd/system + cp nqptp.service $(DESTDIR)$(libdir)/systemd/system endif endif # no installer for FreeBSD yet