From 8a3e24281a442a22ec3d834aafce3a90e522286d Mon Sep 17 00:00:00 2001 From: david Date: Wed, 29 Apr 2026 05:39:29 -0300 Subject: added install to makefile and readme --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 309c0d3..eafa079 100644 --- a/Makefile +++ b/Makefile @@ -2,9 +2,16 @@ CC = gcc CFLAGS = -Wall -Wextra TARGET = cpetrat SRC = cpetrat.c +PREFIX = / $(TARGET): $(SRC) $(CC) $(CFLAGS) -o $(TARGET) $(SRC) +install: $(TARGET) + install -D $(TARGET) $(DESTDIR)$(PREFIX)/bin/$(TARGET) + +uninstall: + rm -f $(DESTDIR)$(PREFIX)/bin/$(TARGET) + clean: rm -f $(TARGET) -- cgit v1.3-2-g0d8e