From 5eafc1a34b2220c062b353facc4ca17990c3547c Mon Sep 17 00:00:00 2001 From: Kyle Isom Date: Mon, 24 Nov 2025 13:57:10 -0800 Subject: [PATCH] local install in Makefile --- Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 9060ab3..770d30e 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ TARGET := ke -KE_VERSION := devel - +KE_VERSION := devel +DEST := $(HOME)/.local/bin/$(TARGET) CFLAGS := -Wall -Wextra -pedantic -Wshadow -Werror -std=c99 -g CFLAGS += -D_DEFAULT_SOURCE -D_XOPEN_SOURCE @@ -13,9 +13,14 @@ all: $(TARGET) test.txt $(TARGET): main.c $(CC) $(CFLAGS) -o $(TARGET) $(LDFLAGS) main.c +.PHONY: install +#install: $(TARGET) +install: + cp $(TARGET) $(DEST) + clean: rm -f $(TARGET) .PHONY: test.txt test.txt: - cp test.txt.bak $@ \ No newline at end of file + cp test.txt.bak $@