uninstall target added
This commit is contained in:
parent
4966256418
commit
2c36fe05f8
|
@ -16,10 +16,12 @@ PATH_TMP_BIN = ../bin/
|
||||||
PATH_TMP_LIB = ../lib/
|
PATH_TMP_LIB = ../lib/
|
||||||
|
|
||||||
# outputs
|
# outputs
|
||||||
OUT_TMP_DRV = $(PATH_TMP_LIB)/libb15fdrv.so
|
OUT_TMP_DRV = $(PATH_TMP_LIB)/libb15fdrv.so
|
||||||
OUT_TMP_CLI = $(PATH_TMP_BIN)/cli.elf
|
OUT_TMP_CLI = $(PATH_TMP_BIN)/cli.elf
|
||||||
OUT_DRV = $(PATH_LIB)/libb15fdrv.so
|
OUT_TMP_PLOTTY = $(PATH_TMP_BIN)/plotty
|
||||||
OUT_PLOTTY = $(PATH_TMP_BIN)/plotty
|
OUT_DRV = $(PATH_LIB)/libb15fdrv.so
|
||||||
|
OUT_CLI = $(PATH_BIN)/b15fcli
|
||||||
|
OUT_PLOTTY = $(PATH_BIN)/plotty
|
||||||
|
|
||||||
# compiling & linking parameters
|
# compiling & linking parameters
|
||||||
CFLAGS = -std=c++17 -O3 -Wall -Wextra -fPIC
|
CFLAGS = -std=c++17 -O3 -Wall -Wextra -fPIC
|
||||||
|
@ -48,16 +50,22 @@ cli: drv $(OBJECTS_CLI)
|
||||||
install: drv
|
install: drv
|
||||||
@echo "Installing driver..."
|
@echo "Installing driver..."
|
||||||
@mkdir -p $(PATH_INCLUDE)
|
@mkdir -p $(PATH_INCLUDE)
|
||||||
cp $(OUT_PLOTTY) $(PATH_BIN)
|
cp $(OUT_TMP_DRV) $(OUT_DRV)
|
||||||
cp $(OUT_TMP_DRV) $(PATH_LIB)
|
cp $(OUT_TMP_CLI) $(OUT_CLI)
|
||||||
|
cp $(OUT_TMP_PLOTTY) $(OUT_PLOTTY)
|
||||||
cp drv/*.h $(PATH_INCLUDE)
|
cp drv/*.h $(PATH_INCLUDE)
|
||||||
|
|
||||||
|
uninstall:
|
||||||
|
@echo "Uninstalling driver..."
|
||||||
|
rm -rf $(PATH_INCLUDE) $(OUT_DRV) $(OUT_CLI) $(OUT_PLOTTY)
|
||||||
|
|
||||||
help:
|
help:
|
||||||
@echo "This Makefile compiles the b15f driver lib and command line interface (CLI):"
|
@echo "This Makefile compiles the b15f driver lib and command line interface (CLI):"
|
||||||
@echo "make ......... to compile all (no install)"
|
@echo "make ......... to compile all (no install)"
|
||||||
@echo "make drv ..... to compile the b15f driver lib"
|
@echo "make drv ..... to compile the b15f driver lib"
|
||||||
@echo "make cli ..... to compile the cli"
|
@echo "make cli ..... to compile the cli"
|
||||||
@echo "make install . to install or update the lib and headers on this machine"
|
@echo "make install . to install or update the lib and headers on this machine"
|
||||||
|
@echo "make uninstall to remove the lib and headers on this machine"
|
||||||
@echo "make clean ... to delete objects and executables"
|
@echo "make clean ... to delete objects and executables"
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
|
Loading…
Reference in a new issue