Monitor use of --trunk-only with --force-branch or --force-tag via rules.
[cvs2svn.git] / Makefile
blob80478d31777a86dfd550c952c8a8924df0d69cd8
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 " install -- Install software using distutils"
11 @echo " dist -- Create an installation package"
12 @echo " check -- Run cvs2svn tests"
13 @echo " pycheck -- Use pychecker to check cvs2svn Python code"
14 @echo " clean -- Clean up source tree and temporary directory"
16 dist:
17 ./dist.sh
19 install:
20 @case "${DESTDIR}" in \
21 "") \
22 echo ${PYTHON} ./setup.py install ; \
23 ${PYTHON} ./setup.py install ; \
24 ;; \
25 *) \
26 echo ${PYTHON} ./setup.py install --root=${DESTDIR} ; \
27 ${PYTHON} ./setup.py install --root=${DESTDIR} ; \
28 ;; \
29 esac
31 check: clean
32 ${PYTHON} ./run-tests.py
34 pycheck:
35 pychecker cvs2svn_lib/*.py
37 clean:
38 -rm -rf cvs2svn-*.tar.gz build cvs2svn-tmp
39 -for d in . cvs2svn_lib cvs2svn_rcsparse svntest contrib ; \
40 do \
41 rm -f $$d/*.pyc $$d/*.pyo; \
42 done