diff --git a/Makefile.inc b/Makefile.inc index 5f0a552..4abc9ab 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -15,16 +15,11 @@ PREFIX ?= /usr/local SBINDIR ?= $(PREFIX)/sbin MANDIR ?= $(PREFIX)/share/man SYSTEMDUNITDIR ?= $(PREFIX)/lib/systemd/system/ -LOGROTATEDIR ?= $(PREFIX)/etc/logrotate.d/ -LIBDIR ?= $(PREFIX)/lib -# For recent Debian/Ubuntu with multiarch support -DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture \ - -qDEB_HOST_MULTIARCH 2>/dev/null) -ifneq "$(DEB_HOST_MULTIARCH)" "" -LIBDIR ?= $(PREFIX)/lib/$(DEB_HOST_MULTIARCH) -# For most other systems -else ifeq "$(shell uname -m)" "x86_64" +LOGROTATEDIR ?= $(SYSCONFDIR)/etc/logrotate.d/ +ifeq "$(shell uname -m)" "x86_64" LIBDIR ?= $(PREFIX)/lib64 +else +LIBDIR ?= $(PREFIX)/lib endif INCLUDEDIR ?= $(PREFIX)/include/criu