mirror of
https://github.com/git/git.git
synced 2024-11-13 20:53:02 +01:00
07a263b905
For now, git-remote-mediawiki is only a remote-helper. This patch adds a new toolset script in which we will be able to build new tools for git-remote-mediawiki. This toolset uses a subcommand-mechanism to launch the proper action. For now only the 'help' subcommand is implemented. It also provides some generic code for the verbose and help command line options. Signed-off-by: Benoit Person <benoit.person@ensimag.fr> Signed-off-by: Matthieu Moy <matthieu.moy@grenoble-inp.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
44 lines
1.1 KiB
Makefile
44 lines
1.1 KiB
Makefile
#
|
|
# Copyright (C) 2013
|
|
# Matthieu Moy <Matthieu.Moy@imag.fr>
|
|
#
|
|
# To build and test:
|
|
#
|
|
# make
|
|
# bin-wrapper/git mw preview Some_page.mw
|
|
# bin-wrapper/git clone mediawiki::http://example.com/wiki/
|
|
#
|
|
# To install, run Git's toplevel 'make install' then run:
|
|
#
|
|
# make install
|
|
|
|
GIT_MEDIAWIKI_PM=Git/Mediawiki.pm
|
|
SCRIPT_PERL=git-remote-mediawiki.perl
|
|
SCRIPT_PERL+=git-mw.perl
|
|
GIT_ROOT_DIR=../..
|
|
HERE=contrib/mw-to-git/
|
|
|
|
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 $(GIT_MEDIAWIKI_PM) $(INSTLIBDIR)/$(GIT_MEDIAWIKI_PM)
|
|
|
|
build:
|
|
$(MAKE) -C $(GIT_ROOT_DIR) SCRIPT_PERL="$(SCRIPT_PERL_FULL)" \
|
|
build-perl-script
|
|
|
|
install: install_pm
|
|
$(MAKE) -C $(GIT_ROOT_DIR) SCRIPT_PERL="$(SCRIPT_PERL_FULL)" \
|
|
install-perl-script
|
|
|
|
clean:
|
|
$(MAKE) -C $(GIT_ROOT_DIR) SCRIPT_PERL="$(SCRIPT_PERL_FULL)" \
|
|
clean-perl-script
|
|
rm $(INSTLIBDIR)/$(GIT_MEDIAWIKI_PM)
|
|
|
|
perlcritic:
|
|
perlcritic -2 *.perl
|