-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
30 lines (26 loc) · 916 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
################################################################################
CLEAN=find . \
-type d -name .ipynb_checkpoints -or \
-type d -name .pytest_cache -or \
-type d -name __pycache__ -or \
-type f -name \*.pyc
################################################################################
define __help_message__
[targets]
make help : show this message
make clean : show some files to remove
make force : actually remove the files
endef
export __help_message__
################################################################################
.PHONY : help
help:
@echo "$$__help_message__"
################################################################################
.PHONY : clean
clean:
-$(CLEAN)
################################################################################
.PHONY : force
force:
-$(CLEAN) | xargs -I xxx rm -rvf xxx