CLI: makefile: install/uninstall + docu

This commit is contained in:
2021-01-15 18:30:25 +01:00
parent 9cce25ff83
commit c4d35b50f2
2 changed files with 52 additions and 9 deletions

View File

@@ -16,11 +16,17 @@ LIB = pugixml/
GTAG := $(shell git tag | head -n1)
GHSH := $(shell git rev-parse HEAD | head -c8)
# define install location
INST := /usr/local/bin
# --------------------------------------------------------------------------- #
# CLI tool
install : $(EXE)
sudo cp $< /usr/local/bin
sudo cp $< $(INST)/
uninstall : $(INST)/$(EXE)
sudo rm $<
$(EXE) : main.o tdm_ripper.o
$(CC) $(OPT) $^ -o $@