From 7b997e7ccfc3b33098868baf6d1835cc69f49fb4 Mon Sep 17 00:00:00 2001 From: Verdant Date: Sun, 17 May 2026 22:13:45 +0800 Subject: Add install to Makefile --- Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index aee8c95..b7e7eac 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,9 @@ +$(TARGET): $(SRCS) + $(CC) $(CFLAGS) -o $(TARGET) $(SRCS) + +TARGET = kl +SRCS = main.c + kl: main.o config.o gcc main.o config.o -o kl @@ -10,3 +16,9 @@ config.o: config.c config.h clean: rm -rf *.o kl +all: $(TARGET) + +install: + install -d $(DESTDIR)$(PREFIX)/bin + + install -m 755 $(TARGET) $(DESTDIR)$(PREFIX)/bin/$(TARGET) -- cgit v1.2.3