From fb8536e12c4cd82cb8cda7751de8485b0e5b9424 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20=C5=A0karvada?= Date: Fri, 25 Apr 2014 13:46:52 +0200 Subject: [PATCH] Makefile: added compatibility for non RPM systems MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jaroslav Škarvada --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 6d6d130..2c45354 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,8 @@ NAME = tuned VERSION = $(shell awk '/^Version:/ {print $$2}' tuned.spec) RELEASE = $(shell awk '/^Release:/ {print $$2}' tuned.spec) -UNITDIR = $(shell rpm --eval '%{_unitdir}') -TMPFILESDIR = $(shell rpm --eval '%{_tmpfilesdir}') +UNITDIR = $(shell rpm --eval '%{_unitdir}' 2>/dev/null || echo /usr/lib/systemd/system) +TMPFILESDIR = $(shell rpm --eval '%{_tmpfilesdir}' 2>/dev/null || echo /usr/lib/tmpfiles.d) VERSIONED_NAME = $(NAME)-$(VERSION) DESTDIR = /