Skip to content

Commit

Permalink
git-remote-mediawiki build: make 'install' command configurable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jonathan Nieder authored and Junio C Hamano committed Nov 11, 2013
1 parent c311741 commit 33f918c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions contrib/mw-to-git/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,17 @@ 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)

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:
Expand Down

0 comments on commit 33f918c

Please sign in to comment.