forked from mhagger/cvs2svn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
55 lines (43 loc) · 1.26 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Makefile for packaging and installing cvs2svn.
# The python interpreter to be used can be overridden here or via
# something like "make ... PYTHON=/path/to/python2.5". Please note
# that this option only affects the "install" and "check" targets:
PYTHON=python
all:
@echo "Supported make targets:"
@echo " man -- Create manpages for the main programs"
@echo " install -- Install software using distutils"
@echo " dist -- Create an installation package"
@echo " check -- Run cvs2svn tests"
@echo " pycheck -- Use pychecker to check cvs2svn Python code"
@echo " clean -- Clean up source tree and temporary directory"
man: cvs2svn.1 cvs2git.1 cvs2bzr.1
cvs2svn.1:
./cvs2svn --man >$@
cvs2git.1:
./cvs2git --man >$@
cvs2bzr.1:
./cvs2bzr --man >$@
dist:
./dist.sh
install:
@case "${DESTDIR}" in \
"") \
echo ${PYTHON} ./setup.py install ; \
${PYTHON} ./setup.py install ; \
;; \
*) \
echo ${PYTHON} ./setup.py install --root=${DESTDIR} ; \
${PYTHON} ./setup.py install --root=${DESTDIR} ; \
;; \
esac
check: clean
${PYTHON} ./run-tests.py
pycheck:
pychecker cvs2svn_lib/*.py
clean:
-rm -rf cvs2svn-*.tar.gz build cvs2svn-tmp cvs2*.1
-for d in . cvs2svn_lib cvs2svn_rcsparse svntest contrib ; \
do \
rm -f $$d/*.pyc $$d/*.pyo; \
done