3 # Matthieu Moy <Matthieu.Moy@imag.fr>
8 # bin-wrapper/git mw preview Some_page.mw
9 # bin-wrapper/git clone mediawiki::http://example.com/wiki/
11 # To install, run Git's toplevel 'make install' then run:
15 GIT_MEDIAWIKI_PM=Git/Mediawiki.pm
16 SCRIPT_PERL=git-remote-mediawiki.perl
17 SCRIPT_PERL+=git-mw.perl
19 HERE=contrib/mw-to-git/
21 SCRIPT_PERL_FULL=$(patsubst %,$(HERE)/%,$(SCRIPT_PERL))
22 INSTLIBDIR=$(shell $(MAKE) -C $(GIT_ROOT_DIR)/perl \
23 -s --no-print-directory instlibdir)
28 install $(GIT_MEDIAWIKI_PM) $(INSTLIBDIR)/$(GIT_MEDIAWIKI_PM)
31 $(MAKE) -C $(GIT_ROOT_DIR) SCRIPT_PERL="$(SCRIPT_PERL_FULL)" \
35 $(MAKE) -C $(GIT_ROOT_DIR) SCRIPT_PERL="$(SCRIPT_PERL_FULL)" \
39 $(MAKE) -C $(GIT_ROOT_DIR) SCRIPT_PERL="$(SCRIPT_PERL_FULL)" \
41 rm $(INSTLIBDIR)/$(GIT_MEDIAWIKI_PM)