summaryrefslogtreecommitdiff
path: root/contrib/git-svn/Makefile
diff options
context:
space:
mode:
authorLibravatar Eric Wong <normalperson@yhbt.net>2006-02-20 10:57:29 -0800
committerLibravatar Junio C Hamano <junkio@cox.net>2006-02-20 13:32:42 -0800
commit96a40b27c99f1f55de1830fb1a39b1050b4b7a18 (patch)
tree2a2d279425d20999e8d870ef6fd818dcc414e3a2 /contrib/git-svn/Makefile
parentgit-svn: fix several corner-case and rare bugs with 'commit' (diff)
downloadtgif-96a40b27c99f1f55de1830fb1a39b1050b4b7a18.tar.xz
contrib/git-svn: add Makefile, test, and associated ignores
Signed-off-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'contrib/git-svn/Makefile')
-rw-r--r--contrib/git-svn/Makefile32
1 files changed, 32 insertions, 0 deletions
diff --git a/contrib/git-svn/Makefile b/contrib/git-svn/Makefile
new file mode 100644
index 0000000000..a330c617d2
--- /dev/null
+++ b/contrib/git-svn/Makefile
@@ -0,0 +1,32 @@
+all: git-svn
+
+prefix?=$(HOME)
+bindir=$(prefix)/bin
+mandir=$(prefix)/man
+man1=$(mandir)/man1
+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
+ $(INSTALL) git-svn.1 $(DESTDIR)$(man1)
+
+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 $<
+test:
+ cd t && $(SHELL) ./t0000-contrib-git-svn.sh
+
+clean:
+ rm -f git-svn *.xml *.html *.1