##// END OF EJS Templates
make: introduce a target to clean everything but packages...
Pierre-Yves David -
r29640:17b3309b stable
parent child Browse files
Show More
@@ -60,7 +60,7 b' wheel:'
60 doc:
60 doc:
61 $(MAKE) -C doc
61 $(MAKE) -C doc
62
62
63 clean:
63 cleanbutpackages:
64 -$(PYTHON) setup.py clean --all # ignore errors from this command
64 -$(PYTHON) setup.py clean --all # ignore errors from this command
65 find contrib doc hgext hgext3rd i18n mercurial tests \
65 find contrib doc hgext hgext3rd i18n mercurial tests \
66 \( -name '*.py[cdo]' -o -name '*.so' \) -exec rm -f '{}' ';'
66 \( -name '*.py[cdo]' -o -name '*.so' \) -exec rm -f '{}' ';'
@@ -68,10 +68,13 b' clean:'
68 rm -f MANIFEST MANIFEST.in hgext/__index__.py tests/*.err
68 rm -f MANIFEST MANIFEST.in hgext/__index__.py tests/*.err
69 rm -f mercurial/__modulepolicy__.py
69 rm -f mercurial/__modulepolicy__.py
70 if test -d .hg; then rm -f mercurial/__version__.py; fi
70 if test -d .hg; then rm -f mercurial/__version__.py; fi
71 rm -rf build packages mercurial/locale
71 rm -rf build mercurial/locale
72 $(MAKE) -C doc clean
72 $(MAKE) -C doc clean
73 $(MAKE) -C contrib/chg distclean
73 $(MAKE) -C contrib/chg distclean
74
74
75 clean: cleanbutpackages
76 rm -rf packages
77
75 install: install-bin install-doc
78 install: install-bin install-doc
76
79
77 install-bin: build
80 install-bin: build
@@ -254,8 +257,8 b' docker-centos7:'
254 mkdir -p packages/centos7
257 mkdir -p packages/centos7
255 contrib/dockerrpm centos7
258 contrib/dockerrpm centos7
256
259
257 .PHONY: help all local build doc clean install install-bin install-doc \
260 .PHONY: help all local build doc cleanbutpackages clean install install-bin \
258 install-home install-home-bin install-home-doc \
261 install-doc install-home install-home-bin install-home-doc \
259 dist dist-notests check tests check-code update-pot \
262 dist dist-notests check tests check-code update-pot \
260 osx fedora20 docker-fedora20 fedora21 docker-fedora21 \
263 osx fedora20 docker-fedora20 fedora21 docker-fedora21 \
261 centos5 docker-centos5 centos6 docker-centos6 centos7 docker-centos7
264 centos5 docker-centos5 centos6 docker-centos6 centos7 docker-centos7
General Comments 0
You need to be logged in to leave comments. Login now