summaryrefslogtreecommitdiff
path: root/Makefile
blob: 6a0a502b5935ed7974593ed220b64e59ab1fed34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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 install uninstall