summaryrefslogtreecommitdiff
path: root/contrib/mw-to-git
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2013-11-11 12:45:50 -0800
committerJunio C Hamano <gitster@pobox.com>2013-11-11 14:14:06 -0800
commit33f918c6752d543e00cbb0c554a13532b5d97366 (patch)
tree384d0ee12f40f50b7667e992aa78c90759dce15d /contrib/mw-to-git
parentc311741331058f4a3005569fb3f937b92e4521fb (diff)
downloadgit-33f918c6752d543e00cbb0c554a13532b5d97366.tar.gz
git-remote-mediawiki build: make 'install' command configurable
On some machines, the most usable 'install' tool is named 'ginstall'. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Acked-by: Matthieu Moy <Matthieu.Moy@imag.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/mw-to-git')
-rw-r--r--contrib/mw-to-git/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/contrib/mw-to-git/Makefile b/contrib/mw-to-git/Makefile
index 389a87eab1..36fa14c2b5 100644
--- a/contrib/mw-to-git/Makefile
+++ b/contrib/mw-to-git/Makefile
@@ -11,6 +11,8 @@ SCRIPT_PERL=git-remote-mediawiki.perl
GIT_ROOT_DIR=../..
HERE=contrib/mw-to-git/
+INSTALL = install
+
SCRIPT_PERL_FULL=$(patsubst %,$(HERE)/%,$(SCRIPT_PERL))
INSTLIBDIR=$(shell $(MAKE) -C $(GIT_ROOT_DIR)/perl \
-s --no-print-directory instlibdir)
@@ -18,8 +20,8 @@ INSTLIBDIR=$(shell $(MAKE) -C $(GIT_ROOT_DIR)/perl \
all: build
install_pm:
- install -d -m 755 $(DESTDIR)$(INSTLIBDIR)/Git
- install -m 644 $(GIT_MEDIAWIKI_PM) \
+ $(INSTALL) -d -m 755 $(DESTDIR)$(INSTLIBDIR)/Git
+ $(INSTALL) -m 644 $(GIT_MEDIAWIKI_PM) \
$(DESTDIR)$(INSTLIBDIR)/$(GIT_MEDIAWIKI_PM)
build: