Skip to content

Commit d83c5fe

Browse files
authored
Merge pull request #621 from cebtenzzre/fix-make-clean
improve `make clean` target
2 parents e876010 + 4b0e401 commit d83c5fe

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

Makefile

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@ ifeq ($(CUDA_HOME),)
88
endif
99

1010
ifndef CUDA_VERSION
11+
ifneq ($(MAKECMDGOALS),clean)
1112
$(warning WARNING: CUDA_VERSION not set. Call make with CUDA string, for example: make cuda11x CUDA_VERSION=115 or make cpuonly CUDA_VERSION=CPU)
1213
CUDA_VERSION:=
1314
endif
15+
endif
1416

1517

1618

@@ -135,10 +137,5 @@ $(ROOT_DIR)/dependencies/cub:
135137
cd dependencies/cub; git checkout 1.11.0
136138

137139
clean:
138-
rm build/*
139-
140-
cleaneggs:
141-
rm -rf *.egg*
142-
143-
cleanlibs:
144-
rm ./bitsandbytes/libbitsandbytes*.so
140+
rm -rf build/* *.egg*
141+
rm -f bitsandbytes/libbitsandbytes*.so

0 commit comments

Comments
 (0)