aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavid <[email protected]>2026-04-29 05:39:29 -0300
committerdavid <[email protected]>2026-04-29 05:39:29 -0300
commit8a3e24281a442a22ec3d834aafce3a90e522286d (patch)
tree3a721f5b092b15a1be16e0e46648bbd8717c9911
parent455ff9ad2058004aac9d8702b0c7274fe14d2335 (diff)
downloadpetratc-8a3e24281a442a22ec3d834aafce3a90e522286d.tar.gz
petratc-8a3e24281a442a22ec3d834aafce3a90e522286d.zip
added install to makefile and readme
-rw-r--r--Makefile7
-rw-r--r--README.md10
2 files changed, 17 insertions, 0 deletions
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