Added "install" make target
This commit is contained in:
parent
5b7f4d87d0
commit
0518f0e184
5
Makefile
5
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/
|
||||
|
|
Loading…
Reference in a new issue