2006-02-20 19:57:29 +01:00
|
|
|
all: git-svn
|
|
|
|
|
|
|
|
prefix?=$(HOME)
|
2006-06-29 22:11:25 +02:00
|
|
|
bindir?=$(prefix)/bin
|
|
|
|
mandir?=$(prefix)/man
|
2006-06-29 23:26:54 +02:00
|
|
|
man1dir=$(mandir)/man1
|
2006-02-20 19:57:29 +01:00
|
|
|
INSTALL?=install
|
|
|
|
doc_conf=../../Documentation/asciidoc.conf
|
|
|
|
-include ../../config.mak
|
|
|
|
|
|
|
|
git-svn: git-svn.perl
|
|
|
|
cp $< $@
|
|
|
|
chmod +x $@
|
|
|
|
|
|
|
|
install: all
|
|
|
|
$(INSTALL) -d -m755 $(DESTDIR)$(bindir)
|
|
|
|
$(INSTALL) git-svn $(DESTDIR)$(bindir)
|
|
|
|
|
|
|
|
install-doc: doc
|
2006-06-29 23:26:54 +02:00
|
|
|
$(INSTALL) git-svn.1 $(DESTDIR)$(man1dir)
|
2006-02-20 19:57:29 +01:00
|
|
|
|
|
|
|
doc: git-svn.1
|
|
|
|
git-svn.1 : git-svn.xml
|
|
|
|
xmlto man git-svn.xml
|
|
|
|
git-svn.xml : git-svn.txt
|
|
|
|
asciidoc -b docbook -d manpage \
|
|
|
|
-f ../../Documentation/asciidoc.conf $<
|
2006-04-02 04:25:03 +02:00
|
|
|
git-svn.html : git-svn.txt
|
|
|
|
asciidoc -b xhtml11 -d manpage \
|
|
|
|
-f ../../Documentation/asciidoc.conf $<
|
2006-04-04 00:18:49 +02:00
|
|
|
test: git-svn
|
2006-06-20 02:59:35 +02:00
|
|
|
cd t && for i in t????-*.sh; do $(SHELL) ./$$i $(TEST_FLAGS); done
|
2006-06-13 13:02:23 +02:00
|
|
|
|
2006-06-16 04:13:56 +02:00
|
|
|
# we can test NO_OPTIMIZE_COMMITS independently of LC_ALL
|
2006-06-13 13:02:23 +02:00
|
|
|
full-test:
|
2006-06-16 04:13:56 +02:00
|
|
|
$(MAKE) test GIT_SVN_NO_LIB=1 GIT_SVN_NO_OPTIMIZE_COMMITS=1 LC_ALL=C
|
|
|
|
$(MAKE) test GIT_SVN_NO_LIB=0 GIT_SVN_NO_OPTIMIZE_COMMITS=1 LC_ALL=C
|
2006-06-13 13:02:23 +02:00
|
|
|
$(MAKE) test GIT_SVN_NO_LIB=1 GIT_SVN_NO_OPTIMIZE_COMMITS=0 \
|
|
|
|
LC_ALL=en_US.UTF-8
|
|
|
|
$(MAKE) test GIT_SVN_NO_LIB=0 GIT_SVN_NO_OPTIMIZE_COMMITS=0 \
|
|
|
|
LC_ALL=en_US.UTF-8
|
2006-02-20 19:57:29 +01:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f git-svn *.xml *.html *.1
|