comparison Makefile @ 94:b18c5670f6c0

Remove __pycache__ files in the clean target
author Roy Marples <roy@marples.name>
date Thu, 21 Jan 2021 22:52:55 +0000
parents 0a4367911035
children
comparison
equal deleted inserted replaced
93:2ce33511de87 94:b18c5670f6c0
2 PYTHON?= python 2 PYTHON?= python
3 3
4 CHMOD?= chmod 4 CHMOD?= chmod
5 COMP?= xz 5 COMP?= xz
6 COMP_SUFFIX?= .xz 6 COMP_SUFFIX?= .xz
7 FIND?= find
7 LS?= ls 8 LS?= ls
8 RM?= rm 9 RM?= rm
9 TAR?= tar 10 TAR?= tar
10 TAR_SUFFIX?= .tar 11 TAR_SUFFIX?= .tar
11 12
38 $(PYTHON) setup.py install --home="$(HOME)" --prefix="" --force 39 $(PYTHON) setup.py install --home="$(HOME)" --prefix="" --force
39 40
40 .PHONY: clean 41 .PHONY: clean
41 clean: 42 clean:
42 $(RM) -rf build dist hg_fastimport.egg-info 43 $(RM) -rf build dist hg_fastimport.egg-info
44 $(FIND) . -type f -name "*.py[co]" -delete \
45 -o -type d -name __pycache__ -delete
43 46
44 .PHONY: distclean 47 .PHONY: distclean
45 distclean: clean 48 distclean: clean
46 $(RM) -f $(PACKAGE)*$(TAR_SUFFIX)* 49 $(RM) -f $(PACKAGE)*$(TAR_SUFFIX)*
47 50