3 # Matthieu Moy <Matthieu.Moy@imag.fr>
5 # To install, run Git's toplevel 'make install' then run:
9 GIT_MEDIAWIKI_PM
=Git
/Mediawiki.pm
10 SCRIPT_PERL
=git-remote-mediawiki.perl
12 HERE
=contrib
/mw-to-git
/
16 SCRIPT_PERL_FULL
=$(patsubst %,$(HERE
)/%,$(SCRIPT_PERL
))
17 INSTLIBDIR
=$(shell $(MAKE
) -C
$(GIT_ROOT_DIR
)/perl \
18 -s
--no-print-directory instlibdir
)
19 DESTDIR_SQ
= $(subst ','\'',$(DESTDIR))
20 INSTLIBDIR_SQ = $(subst ','\'',$(INSTLIBDIR
))
25 $(INSTALL
) -d
-m
755 '$(DESTDIR_SQ)$(INSTLIBDIR_SQ)/Git'
26 $(INSTALL
) -m
644 $(GIT_MEDIAWIKI_PM
) \
27 '$(DESTDIR_SQ)$(INSTLIBDIR_SQ)/$(GIT_MEDIAWIKI_PM)'
30 $(MAKE
) -C
$(GIT_ROOT_DIR
) SCRIPT_PERL
=$(SCRIPT_PERL_FULL
) \
34 $(MAKE
) -C
$(GIT_ROOT_DIR
) SCRIPT_PERL
=$(SCRIPT_PERL_FULL
) \
38 $(MAKE
) -C
$(GIT_ROOT_DIR
) SCRIPT_PERL
=$(SCRIPT_PERL_FULL
) \