diff options
author | Theron Spiegl <theron@spiegl.dev> | 2024-04-04 17:32:15 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-04 17:32:15 -0500 |
commit | a3c17cf3e1d658f465367b8b0bd832cde1d0389a (patch) | |
tree | 0df7381e4bcee6ab72a8a2cf4e8949e5e3dc87a3 | |
parent | 7da2702cff72da9a3079b8c128a0092b24410682 (diff) | |
parent | f859d33ae3b80dae7229fac296f2e5782346a7b8 (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/* |