From 0a31e19167dc89a0d651a5aeab4ccbabde5d7369 Mon Sep 17 00:00:00 2001 From: Aki Date: Sat, 15 Apr 2023 23:56:16 +0200 Subject: Replaced step-by-step installation with install(1) --- Makefile | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 1b01e85..7fd3d4e 100644 --- a/Makefile +++ b/Makefile @@ -12,13 +12,9 @@ all: pkgrel clean: rm -f *.o pkgrel -install: pkgrel - mkdir -p $(DESTDIR)$(BINDIR) - mkdir -p $(DESTDIR)$(MANDIR) - cp -f pkgrel $(DESTDIR)$(BINDIR)/pkgrel - cp -f pkgrel.1 $(DESTDIR)$(MANDIR)/pkgrel.1 - chmod 755 $(DESTDIR)$(BINDIR)/pkgrel - chmod 644 $(DESTDIR)$(MANDIR)/pkgrel.1 +install: all + install -Dm755 pkgrel -t $(DESTDIR)$(BINDIR)/ + install -Dm644 pkgrel.1 -t $(DESTDIR)$(MANDIR)/ uninstall: rm -f $(DESTDIR)$(BINDIR)/pkgrel -- cgit v1.1