From f859d33ae3b80dae7229fac296f2e5782346a7b8 Mon Sep 17 00:00:00 2001 From: Tanmay Patil Date: Mon, 9 Oct 2023 13:28:41 +0530 Subject: Use install command instead of cp --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Makefile') 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/* -- cgit v1.2.3