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