Add make install and make uninstall

This commit is contained in:
x3 2021-05-23 18:22:43 +02:00
parent b6f58089b0
commit 5dfc8f80ce
Signed by: x3
GPG Key ID: 7E9961E8AD0E240E

View File

@ -1,4 +1,5 @@
MultiThread = Yes
InstallPrefix = /usr/local/bin
PROGNAME = torrent-verify
CC = cc
@ -17,6 +18,12 @@ OBJS = $(SOURCE:.c=.o)
all: $(PROGNAME)
install: $(PROGNAME)
install -s -- $< $(InstallPrefix)/$(PROGNAME)
uninstall:
rm -r -- $(InstallPrefix)/$(PROGNAME)
$(PROGNAME): $(OBJS)
$(CC) -o $@ $+ $(CFLAGS) $(CPPFLAGS)