diff options
author | Aki <please@ignore.pl> | 2024-06-19 00:58:20 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2024-06-19 00:58:20 +0200 |
commit | ee162a64d3c6697a9f33f5941cd6f08d1bb7059b (patch) | |
tree | b47ad28d4269a51039a1dc084201d64818e31efe /Makefile | |
parent | d7bd57154e1b74801dacf33a6fca1e422b61f220 (diff) | |
download | datever-ee162a64d3c6697a9f33f5941cd6f08d1bb7059b.zip datever-ee162a64d3c6697a9f33f5941cd6f08d1bb7059b.tar.gz datever-ee162a64d3c6697a9f33f5941cd6f08d1bb7059b.tar.bz2 |
Install target for executable
Diffstat (limited to 'Makefile')
-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 |