Browse Source

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>
maint
Jonathan Nieder 11 years ago committed by Junio C Hamano
parent
commit
33f918c675
  1. 6
      contrib/mw-to-git/Makefile

6
contrib/mw-to-git/Makefile

@ -11,6 +11,8 @@ SCRIPT_PERL=git-remote-mediawiki.perl @@ -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 \ @@ -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:

Loading…
Cancel
Save