summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index f48a6f7..6a0a502 100644
--- a/Makefile
+++ b/Makefile
@@ -2,13 +2,20 @@ CFLAGS=-Wall -Wextra -Wpedantic -O3 -std=c99 -D_POSIX_C_SOURCE=200809L
CFLAGS+=`pkg-config --cflags libgit2`
LDLIBS+=`pkg-config --libs libgit2`
+DESTDIR=
+PREFIX=/usr/local
+BINDIR=$(PREFIX)/bin
all: datever
-
clean:
rm -f datever
+install: all
+ install -Dm755 datever -t $(DESTDIR)$(BINDIR)/
+
+uninstall:
+ rm -f $(DESTDIR)$(BINDIR)/datever
.POSIX:
-.PHONY: all clean
+.PHONY: all clean install uninstall