Makefile: added compatibility for non RPM systems
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
This commit is contained in:
parent
393708d974
commit
fb8536e12c
1 changed files with 2 additions and 2 deletions
4
Makefile
4
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 = /
|
||||
|
|
|
|||
Loading…
Reference in a new issue