Break out of loop correctly when the first file difference is found.
[cvs2svn.git] / Makefile
blob1d851bf4a8512d1bdd66d4ee95cce491d9f7bc12
1 # Makefile for packaging and installing cvs2svn.
3 # The python interpreter to be used can be overridden here or via
4 # something like "make ... PYTHON=/path/to/python2.5". Please note
5 # that this option only affects the "install" and "check" targets:
6 PYTHON=python
8 all:
9 @echo "Supported make targets:"
10 @echo " man -- Create manpages for the main programs"
11 @echo " install -- Install software using distutils"
12 @echo " dist -- Create an installation package"
13 @echo " check -- Run cvs2svn tests"
14 @echo " pycheck -- Use pychecker to check cvs2svn Python code"
15 @echo " clean -- Clean up source tree and temporary directory"
17 man: cvs2svn.1 cvs2git.1 cvs2bzr.1
19 cvs2svn.1:
20 ./cvs2svn --man >$@
22 cvs2git.1:
23 ./cvs2git --man >$@
25 cvs2bzr.1:
26 ./cvs2bzr --man >$@
28 dist:
29 ./dist.sh
31 install:
32 @case "${DESTDIR}" in \
33 "") \
34 echo ${PYTHON} ./setup.py install ; \
35 ${PYTHON} ./setup.py install ; \
36 ;; \
37 *) \
38 echo ${PYTHON} ./setup.py install --root=${DESTDIR} ; \
39 ${PYTHON} ./setup.py install --root=${DESTDIR} ; \
40 ;; \
41 esac
43 check: clean
44 ${PYTHON} ./run-tests.py
46 pycheck:
47 pychecker cvs2svn_lib/*.py
49 clean:
50 -rm -rf cvs2svn-*.tar.gz build cvs2svn-tmp cvs2*.1
51 -for d in . cvs2svn_lib cvs2svn_rcsparse svntest contrib ; \
52 do \
53 rm -f $$d/*.pyc $$d/*.pyo; \
54 done