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/