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
|
MultiThread = Yes
|
||||||
|
InstallPrefix = /usr/local/bin
|
||||||
|
|
||||||
PROGNAME = torrent-verify
|
PROGNAME = torrent-verify
|
||||||
CC = cc
|
CC = cc
|
||||||
@ -17,6 +18,12 @@ OBJS = $(SOURCE:.c=.o)
|
|||||||
|
|
||||||
all: $(PROGNAME)
|
all: $(PROGNAME)
|
||||||
|
|
||||||
|
install: $(PROGNAME)
|
||||||
|
install -s -- $< $(InstallPrefix)/$(PROGNAME)
|
||||||
|
|
||||||
|
uninstall:
|
||||||
|
rm -r -- $(InstallPrefix)/$(PROGNAME)
|
||||||
|
|
||||||
$(PROGNAME): $(OBJS)
|
$(PROGNAME): $(OBJS)
|
||||||
$(CC) -o $@ $+ $(CFLAGS) $(CPPFLAGS)
|
$(CC) -o $@ $+ $(CFLAGS) $(CPPFLAGS)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user