summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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