Add make install
and make uninstall
This commit is contained in:
parent
b6f58089b0
commit
5dfc8f80ce
7
Makefile
7
Makefile
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user