diff options
author | Tanmay Patil <tanmaynpatil105@gmail.com> | 2023-10-09 13:28:41 +0530 |
---|---|---|
committer | Tanmay Patil <tanmaynpatil105@gmail.com> | 2023-10-09 13:28:41 +0530 |
commit | f859d33ae3b80dae7229fac296f2e5782346a7b8 (patch) | |
tree | 49d398fb6d4383027d52e4413b0caee1c0a621bb | |
parent | e4a65824c878ac009499924480cc48bb5be55481 (diff) |
Use install command instead of cp
-rw-r--r-- | Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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/* |