From 95ae8efbf823f419ff30fb2d32ee8c36681449ef Mon Sep 17 00:00:00 2001 From: Daniel Schaefer Date: Wed, 31 Jul 2019 00:02:03 +0200 Subject: [PATCH] Makefile: Use install command to install It creates the parent directories of the target if they are not there. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index c561b2b..c129ec5 100644 --- a/Makefile +++ b/Makefile @@ -22,8 +22,8 @@ config.h: config.def.h cp -i config.def.h config.h install: mtm - cp mtm $(DESTDIR)/bin - cp mtm.1 $(MANDIR) + install -Dm755 mtm -t $(DESTDIR)/bin + install -Dm644 mtm.1 -t $(MANDIR) install-terminfo: mtm.ti tic -s -x mtm.ti