summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTanmay Patil <tanmaynpatil105@gmail.com>2023-10-09 13:28:41 +0530
committerTanmay Patil <tanmaynpatil105@gmail.com>2023-10-09 13:28:41 +0530
commitf859d33ae3b80dae7229fac296f2e5782346a7b8 (patch)
tree49d398fb6d4383027d52e4413b0caee1c0a621bb
parente4a65824c878ac009499924480cc48bb5be55481 (diff)
Use install command instead of cp
-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/*