status: respect advice.statusHints for ahead/behind advice
[git/mingw.git] / contrib / mw-to-git / Makefile
blob3ed728b0efa4b9c121385a37dd6d1edb4cb7726b
2 # Copyright (C) 2012
3 # Charles Roussel <charles.roussel@ensimag.imag.fr>
4 # Simon Cathebras <simon.cathebras@ensimag.imag.fr>
5 # Julien Khayat <julien.khayat@ensimag.imag.fr>
6 # Guillaume Sasdy <guillaume.sasdy@ensimag.imag.fr>
7 # Simon Perrat <simon.perrat@ensimag.imag.fr>
9 ## Build git-remote-mediawiki
11 -include ../../config.mak.autogen
12 -include ../../config.mak
14 ifndef PERL_PATH
15 PERL_PATH = /usr/bin/perl
16 endif
17 ifndef gitexecdir
18 gitexecdir = $(shell git --exec-path)
19 endif
21 PERL_PATH_SQ = $(subst ','\'',$(PERL_PATH))
22 gitexecdir_SQ = $(subst ','\'',$(gitexecdir))
23 SCRIPT = git-remote-mediawiki
25 .PHONY: install help doc test clean
27 help:
28 @echo 'This is the help target of the Makefile. Current configuration:'
29 @echo ' gitexecdir = $(gitexecdir_SQ)'
30 @echo ' PERL_PATH = $(PERL_PATH_SQ)'
31 @echo 'Run "$(MAKE) install" to install $(SCRIPT) in gitexecdir'
32 @echo 'Run "$(MAKE) test" to run the testsuite'
34 install:
35 sed -e '1s|#!.*/perl|#!$(PERL_PATH_SQ)|' $(SCRIPT) \
36 > '$(gitexecdir_SQ)/$(SCRIPT)'
37 chmod +x '$(gitexecdir)/$(SCRIPT)'
39 doc:
40 @echo 'Sorry, "make doc" is not implemented yet for $(SCRIPT)'
42 test:
43 $(MAKE) -C t/ test
45 clean:
46 $(RM) '$(gitexecdir)/$(SCRIPT)'
47 $(MAKE) -C t/ clean