added install to makefile and readme

This commit is contained in:
david committed 2026-04-29 05:39:29 -03:00
1 parent 455ff9ad20
commit 8a3e24281a
2 files changed
+17

No files matched your search

+7
View File
@@ -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)
+10
View File
@@ -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