summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 8be2206..59e55d1 100644
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,8 @@ CC = gcc
CFLAGS = -Wall -std=gnu99
SOURCES = $(addprefix src/, whatfiles.c attach.c utilities.c hashmap.c strings.c)
+INSTALL = /usr/bin/install -c
+
ARCH = $(shell uname -m)
ifeq ($(findstring arm,$(ARCH)), arm)
ARCH_DIR = arm32
@@ -22,8 +24,8 @@ bin/whatfiles: $(SOURCES)
# utils
-install:
- cp ./bin/whatfiles /usr/local/bin/whatfiles
+install: bin/whatfiles
+ ${INSTALL} ./bin/whatfiles /usr/local/bin/whatfiles
clean:
rm -rf bin/*