aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 7 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)