git-remote-mediawiki: add test and check Makefile targets
There are a few level 4 and 2 perlcritic issues in the current code. We make level 5 fatal, and keep level 2 as warnings. Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Matthieu Moy committed
Aug 29, 2013 at 20:58 UTC
8987cda9e1e1c36e5d0a9be6d371697e50773856
1 file changed
+9
-1
contrib/mw-to-git/Makefile
+9
-1
@@ -24,6 +24,11 @@ INSTLIBDIR=$(shell $(MAKE) -C $(GIT_ROOT_DIR)/perl \
24
25
all: build
26
27
+test: all
28
+ $(MAKE) -C t
29
+
30
+check: perlcritic test
31
+
32
install_pm:
33
install $(GIT_MEDIAWIKI_PM) $(INSTLIBDIR)/$(GIT_MEDIAWIKI_PM)
34
@@ -41,4 +46,7 @@ clean:
46
rm $(INSTLIBDIR)/$(GIT_MEDIAWIKI_PM)
47
48
perlcritic:
44
- perlcritic -2 *.perl
49
+ perlcritic -5 $(SCRIPT_PERL)
50
+ -perlcritic -2 $(SCRIPT_PERL)
51
+
52
+.PHONY: all test check install_pm install clean perlcritic