summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTheron Spiegl <theron@spiegl.dev>2024-04-04 17:32:15 -0500
committerGitHub <noreply@github.com>2024-04-04 17:32:15 -0500
commita3c17cf3e1d658f465367b8b0bd832cde1d0389a (patch)
tree0df7381e4bcee6ab72a8a2cf4e8949e5e3dc87a3
parent7da2702cff72da9a3079b8c128a0092b24410682 (diff)
parentf859d33ae3b80dae7229fac296f2e5782346a7b8 (diff)
Merge pull request #10 from TanmayPatil105/use-installHEADmaster
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/*