Commit 4b0e401c authored by Cebtenzzre's avatar Cebtenzzre
Browse files

improve `make clean` target

Make `make clean` remove all build artifacts, and do not warn about
CUDA_VERSION when simply running 'clean'.

Fixes #532
parent e229fbce
......@@ -8,9 +8,11 @@ ifeq ($(CUDA_HOME),)
endif
ifndef CUDA_VERSION
ifneq ($(MAKECMDGOALS),clean)
$(warning WARNING: CUDA_VERSION not set. Call make with CUDA string, for example: make cuda11x CUDA_VERSION=115 or make cpuonly CUDA_VERSION=CPU)
CUDA_VERSION:=
endif
endif
......@@ -135,10 +137,5 @@ $(ROOT_DIR)/dependencies/cub:
cd dependencies/cub; git checkout 1.11.0
clean:
rm build/*
cleaneggs:
rm -rf *.egg*
cleanlibs:
rm ./bitsandbytes/libbitsandbytes*.so
rm -rf build/* *.egg*
rm -f bitsandbytes/libbitsandbytes*.so
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment