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 +++++++ README.md | 10 ++++++++++ 2 files changed, 17 insertions(+) create mode 100644 README.md 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) diff --git a/README.md b/README.md new file mode 100644 index 0000000..9219782 --- /dev/null +++ b/README.md @@ -0,0 +1,10 @@ +# take care of your little rat! + +# installing: +```term +make && make install +``` + +that's pretty much it lol + +it saves its state to ~/.local/share/rat -- cgit v1.3-2-g0d8e