Added "install" make target

This commit is contained in:
Thomas Kolb 2015-10-10 15:34:33 +02:00
parent 5b7f4d87d0
commit 0518f0e184

View file

@ -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/