e3e7d34513
Option "-2" launches perlcritic with level 2. Levels go from 5 (most pertinent) to 1. Rules of level 1 are mostly a question of style, and are therefore ignored. Signed-off-by: Célestin Matte <celestin.matte@ensimag.fr> Signed-off-by: Matthieu Moy <matthieu.moy@grenoble-inp.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
20 lines
397 B
Makefile
20 lines
397 B
Makefile
#
|
|
# Copyright (C) 2013
|
|
# Matthieu Moy <Matthieu.Moy@imag.fr>
|
|
#
|
|
## Build git-remote-mediawiki
|
|
|
|
SCRIPT_PERL=git-remote-mediawiki.perl
|
|
GIT_ROOT_DIR=../..
|
|
HERE=contrib/mw-to-git/
|
|
|
|
SCRIPT_PERL_FULL=$(patsubst %,$(HERE)/%,$(SCRIPT_PERL))
|
|
|
|
all: build
|
|
|
|
build install clean:
|
|
$(MAKE) -C $(GIT_ROOT_DIR) SCRIPT_PERL=$(SCRIPT_PERL_FULL) \
|
|
$@-perl-script
|
|
perlcritic:
|
|
perlcritic -2 *.perl
|