diary

Text-based journaling program
git clone https://git.in0rdr.ch/diary.git
Log | Files | Refs | README | LICENSE

commit 5a7a234ca5064dede15a5a20e415c158693936ea
parent 076b8174eea8530aba8619b4ab07923d94235753
Author: Johnathan Jenkins <john@nixheads.co.uk>
Date:   Tue, 22 Nov 2016 22:17:48 -0800

add prefix to makefile

Diffstat:
MMakefile | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,6 +1,7 @@ TARGET = diary SRC = diary.c -INSTALL_DIR = /usr/local/bin +PREFIX ?= /usr/local +BINDIR ?= $(DESTDIR)$(PREFIX)/bin CC = gcc CFLAGS = -lncurses @@ -14,7 +15,7 @@ clean: rm -f $(TARGET) install: $(TARGET) - cp $(TARGET) $(INSTALL_DIR)/$(TARGET) + cp $(TARGET) $(BINDIR)/$(TARGET) uninstall: - rm -f $(INSTALL_DIR)/$(TARGET) + rm -f $(BINDIR)/$(TARGET)