diff options
-rw-r--r-- | Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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 |