Use coreutils' install command, support DESTDIR

This commit is contained in:
Lekensteyn 2012-04-22 15:37:00 +02:00
parent f527bc5d45
commit 51c760eef7
5 changed files with 11 additions and 4 deletions

View file

@ -5,6 +5,7 @@ INCLUDES =
DEBUG = 4
OPTIMIZE = -g
CCFLAGS = -Wall -Wextra -funsigned-char $(OPTIMIZE) -DDEBUG=$(DEBUG)
INSTALL = install
CC = $(CROSS)g++
LD = $(CROSS)ld
AR = $(CROSS)ar
@ -19,5 +20,5 @@ $(OUT): $(OBJ)
clean:
rm -rf $(OBJ) $(OUT) Makefile.bak *~
install: $(OUT)
cp -f ./$(OUT) /usr/bin/
$(INSTALL) -D ./$(OUT) $(DESTDIR)/usr/bin/$(OUT)