summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2024-06-19 00:58:20 +0200
committerAki <please@ignore.pl>2024-06-19 00:58:20 +0200
commitee162a64d3c6697a9f33f5941cd6f08d1bb7059b (patch)
treeb47ad28d4269a51039a1dc084201d64818e31efe /Makefile
parentd7bd57154e1b74801dacf33a6fca1e422b61f220 (diff)
downloaddatever-ee162a64d3c6697a9f33f5941cd6f08d1bb7059b.zip
datever-ee162a64d3c6697a9f33f5941cd6f08d1bb7059b.tar.gz
datever-ee162a64d3c6697a9f33f5941cd6f08d1bb7059b.tar.bz2
Install target for executable
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