summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2024-01-06 02:45:35 +0100
committerAki <please@ignore.pl>2024-01-06 02:45:35 +0100
commitb8e8b02a1f4d7a398fc7c10de98e51bf1945b04f (patch)
tree0b0d2acf888ccce875ff4a765225f801432d54f6
parent080d76ce2cbe6883941b01fb46b5dbee3b0d72c9 (diff)
downloadpkgrel-b8e8b02a1f4d7a398fc7c10de98e51bf1945b04f.zip
pkgrel-b8e8b02a1f4d7a398fc7c10de98e51bf1945b04f.tar.gz
pkgrel-b8e8b02a1f4d7a398fc7c10de98e51bf1945b04f.tar.bz2
Use MAN1DIR in makefile
-rw-r--r--Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 7fd3d4e..86ffaf5 100644
--- a/Makefile
+++ b/Makefile
@@ -2,10 +2,11 @@ CFLAGS?=-Wall -Wextra -Wpedantic -O3
CFLAGS+=`pkg-config --cflags libgit2`
LDLIBS+=`pkg-config --libs libgit2`
-PREFIX?=/usr/local
-BINDIR?=$(PREFIX)/bin
-DATADIR?=$(PREFIX)/share
-MANDIR?=$(DATADIR)/man/man1
+PREFIX=/usr/local
+BINDIR=$(PREFIX)/bin
+DATADIR=$(PREFIX)/share
+MANDIR=$(DATADIR)/man
+MAN1DIR=$(MANDIR)/man1
all: pkgrel
@@ -14,7 +15,7 @@ clean:
install: all
install -Dm755 pkgrel -t $(DESTDIR)$(BINDIR)/
- install -Dm644 pkgrel.1 -t $(DESTDIR)$(MANDIR)/
+ install -Dm644 pkgrel.1 -t $(DESTDIR)$(MAN1DIR)/
uninstall:
rm -f $(DESTDIR)$(BINDIR)/pkgrel