git-svn: allow a local target directory to be specified for init
[git/git.git] / contrib / git-svn / Makefile
CommitLineData
96a40b27
EW
1all: git-svn
2
3prefix?=$(HOME)
4bindir=$(prefix)/bin
5mandir=$(prefix)/man
6man1=$(mandir)/man1
7INSTALL?=install
8doc_conf=../../Documentation/asciidoc.conf
9-include ../../config.mak
10
11git-svn: git-svn.perl
12 cp $< $@
13 chmod +x $@
14
15install: all
16 $(INSTALL) -d -m755 $(DESTDIR)$(bindir)
17 $(INSTALL) git-svn $(DESTDIR)$(bindir)
18
19install-doc: doc
20 $(INSTALL) git-svn.1 $(DESTDIR)$(man1)
21
22doc: git-svn.1
23git-svn.1 : git-svn.xml
24 xmlto man git-svn.xml
25git-svn.xml : git-svn.txt
26 asciidoc -b docbook -d manpage \
27 -f ../../Documentation/asciidoc.conf $<
20b1d700
EW
28git-svn.html : git-svn.txt
29 asciidoc -b xhtml11 -d manpage \
30 -f ../../Documentation/asciidoc.conf $<
5f2f4240 31test: git-svn
c07eee1f 32 cd t && for i in t????-*.sh; do $(SHELL) ./$$i $(TEST_FLAGS); done
42d32870 33
86f36379 34# we can test NO_OPTIMIZE_COMMITS independently of LC_ALL
42d32870 35full-test:
86f36379
EW
36 $(MAKE) test GIT_SVN_NO_LIB=1 GIT_SVN_NO_OPTIMIZE_COMMITS=1 LC_ALL=C
37 $(MAKE) test GIT_SVN_NO_LIB=0 GIT_SVN_NO_OPTIMIZE_COMMITS=1 LC_ALL=C
42d32870
EW
38 $(MAKE) test GIT_SVN_NO_LIB=1 GIT_SVN_NO_OPTIMIZE_COMMITS=0 \
39 LC_ALL=en_US.UTF-8
40 $(MAKE) test GIT_SVN_NO_LIB=0 GIT_SVN_NO_OPTIMIZE_COMMITS=0 \
41 LC_ALL=en_US.UTF-8
96a40b27
EW
42
43clean:
44 rm -f git-svn *.xml *.html *.1