summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2023-04-15 23:56:16 +0200
committerAki <please@ignore.pl>2023-04-15 23:56:16 +0200
commit0a31e19167dc89a0d651a5aeab4ccbabde5d7369 (patch)
tree90a5edd99f31556db6ad09e43dd2e5af1ce40d7e
parent976260d846b1c6512f310766798b3fa1cd2e680f (diff)
downloadpkgrel-0a31e19167dc89a0d651a5aeab4ccbabde5d7369.zip
pkgrel-0a31e19167dc89a0d651a5aeab4ccbabde5d7369.tar.gz
pkgrel-0a31e19167dc89a0d651a5aeab4ccbabde5d7369.tar.bz2
Replaced step-by-step installation with install(1)
-rw-r--r--Makefile10
1 files changed, 3 insertions, 7 deletions
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