git-svn: tests no longer fail if LC_ALL is not a UTF-8 locale
[git.git] / contrib / git-svn / Makefile
1 all: git-svn
2
3 prefix?=$(HOME)
4 bindir=$(prefix)/bin
5 mandir=$(prefix)/man
6 man1=$(mandir)/man1
7 INSTALL?=install
8 doc_conf=../../Documentation/asciidoc.conf
9 -include ../../config.mak
10
11 git-svn: git-svn.perl
12         cp $< $@
13         chmod +x $@
14
15 install: all
16         $(INSTALL) -d -m755 $(DESTDIR)$(bindir)
17         $(INSTALL) git-svn $(DESTDIR)$(bindir)
18
19 install-doc: doc
20         $(INSTALL) git-svn.1 $(DESTDIR)$(man1)
21
22 doc: git-svn.1
23 git-svn.1 : git-svn.xml
24         xmlto man git-svn.xml
25 git-svn.xml : git-svn.txt
26         asciidoc -b docbook -d manpage \
27                 -f ../../Documentation/asciidoc.conf $<
28 git-svn.html : git-svn.txt
29         asciidoc -b xhtml11 -d manpage \
30                 -f ../../Documentation/asciidoc.conf $<
31 test: git-svn
32         cd t && $(SHELL) ./t0000-contrib-git-svn.sh $(TEST_FLAGS)
33         cd t && $(SHELL) ./t0001-contrib-git-svn-props.sh $(TEST_FLAGS)
34
35 # we can test NO_OPTIMIZE_COMMITS independently of LC_ALL
36 full-test:
37         $(MAKE) test GIT_SVN_NO_LIB=1 GIT_SVN_NO_OPTIMIZE_COMMITS=1 LC_ALL=C
38         $(MAKE) test GIT_SVN_NO_LIB=0 GIT_SVN_NO_OPTIMIZE_COMMITS=1 LC_ALL=C
39         $(MAKE) test GIT_SVN_NO_LIB=1 GIT_SVN_NO_OPTIMIZE_COMMITS=0 \
40                                                         LC_ALL=en_US.UTF-8
41         $(MAKE) test GIT_SVN_NO_LIB=0 GIT_SVN_NO_OPTIMIZE_COMMITS=0 \
42                                                         LC_ALL=en_US.UTF-8
43
44 clean:
45         rm -f git-svn *.xml *.html *.1