mirror of
https://git.squeakyrat.moe/petratc/
synced 2026-11-04 18:35:43 +01:00
added install to makefile and readme
This commit is contained in:
1 parent
455ff9ad20
commit
8a3e24281a
2 files changed
+17
No files matched your search
@@ -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)
|
||||
Reference in new issue
Block a user