From 0518f0e184cd4f811da54ab445ef10d7592785b1 Mon Sep 17 00:00:00 2001 From: Thomas Kolb Date: Sat, 10 Oct 2015 15:34:33 +0200 Subject: [PATCH] Added "install" make target --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index e2281eb..42d6279 100644 --- a/Makefile +++ b/Makefile @@ -34,6 +34,9 @@ VCSVERSION := $(shell git rev-parse --short HEAD) SOURCE := $(shell find src/ -name '*.c') INCLUDES := $(shell find include/ -name '*.h') +# install destination directory +DESTDIR ?= /usr/local + # --- END OF CONFIG ----------------------------------------------------- OBJ1=$(patsubst %.c, %.o, $(SOURCE)) @@ -77,3 +80,5 @@ clean: rm -f $(TARGETFILE) rm -f $(OBJ) +install: all + install -m 755 $(TARGETFILE) $(DESTDIR)/bin/