Commit d7f3be8a authored by Kir Kolyshkin's avatar Kir Kolyshkin Committed by Pavel Emelyanov

Makefile.install: rm unused vars/target

1. LOGROTATEDIR is not used since commit f4e9a1df
("make: don't install service and logrotate configs").

2. SYSTEMDUNITDIR is not used since commit 10d5e9a4
("criu: scripts: remove criu service files").

3. install-tree target was *never* used, makes no sense
to keep it.

While at it, also
 - sort the variables in "export" statement to match
   the order of appearance in Makefile;

 - don't export DESTDIR (it is exported by default as
   it always comes from the make command line);

 - remove unused variable from INSTALL.md.

travis-ci: success for Makefile.install fixes
Signed-off-by: 's avatarKir Kolyshkin <kir@openvz.org>
Acked-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 5502b5b5
...@@ -13,7 +13,6 @@ this command accepts the following variables: ...@@ -13,7 +13,6 @@ this command accepts the following variables:
* **BINDIR**, to specify where to put CRIT tool (`$(PREFIX)/bin` by default); * **BINDIR**, to specify where to put CRIT tool (`$(PREFIX)/bin` by default);
* **SBINDIR**, to specify where to put CRIU executable (`$(PREFIX)/sbin` by default); * **SBINDIR**, to specify where to put CRIU executable (`$(PREFIX)/sbin` by default);
* **MANDIR**, to specify directory for manual pages (`$(PREFIX)/share/man` by default); * **MANDIR**, to specify directory for manual pages (`$(PREFIX)/share/man` by default);
* **SYSTEMDUNITDIR**, to specify place where systemd units are living (`$(PREFIX)/lib/systemd/system` by default);
* **LIBDIR**, to specify directory where to put libraries (guess the correct path by default). * **LIBDIR**, to specify directory where to put libraries (guess the correct path by default).
Thus one can type Thus one can type
......
...@@ -4,8 +4,6 @@ PREFIX := /usr/local ...@@ -4,8 +4,6 @@ PREFIX := /usr/local
BINDIR := $(PREFIX)/bin BINDIR := $(PREFIX)/bin
SBINDIR := $(PREFIX)/sbin SBINDIR := $(PREFIX)/sbin
MANDIR := $(PREFIX)/share/man MANDIR := $(PREFIX)/share/man
SYSTEMDUNITDIR := $(PREFIX)/lib/systemd/system
LOGROTATEDIR := $(PREFIX)/etc/logrotate.d
LIBDIR := $(PREFIX)/lib LIBDIR := $(PREFIX)/lib
INCLUDEDIR := $(PREFIX)/include INCLUDEDIR := $(PREFIX)/include
LIBEXECDIR := $(PREFIX)/libexec LIBEXECDIR := $(PREFIX)/libexec
...@@ -23,15 +21,8 @@ else ...@@ -23,15 +21,8 @@ else
endif endif
endif endif
export BINDIR SBINDIR MANDIR SYSTEMDUNITDIR LOGROTATEDIR export PREFIX BINDIR SBINDIR MANDIR
export INCLUDEDIR LIBDIR DESTDIR PREFIX LIBEXECDIR export LIBDIR INCLUDEDIR LIBEXECDIR
install-tree:
$(Q) mkdir -p $(DESTDIR)$(SYSTEMDUNITDIR)
$(Q) mkdir -p $(DESTDIR)$(LOGROTATEDIR)
$(Q) mkdir -p $(DESTDIR)$(INCLUDEDIR)
$(Q) mkdir -p $(DESTDIR)$(LIBEXECDIR)
.PHONY: install-tree
install-man: install-man:
$(Q) $(MAKE) -C Documentation install $(Q) $(MAKE) -C Documentation install
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment