Explicitly set the default goal at the very top of various makefiles.
This is already present in some makefiles, but not all of them.
In particular, this corrects a regression introduced in a38edab7c8
(Makefile: generate doc versions via GIT-VERSION-GEN, 2024-12-06). That
commit added some config files as build targets for the Documentation
directory, and put the target configuration in a sensible place.
Unfortunately, that sensible place was above any other build target
definitions, meaning the default goal changed to being those
configuration files only, rather than the HTML and man page
documentation.
Signed-off-by: Adam Dinwoodie <adam@dinwoodie.org>
Helped-by: Junio C Hamano <gitster@pobox.com>
Acked-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
62 lines
1.5 KiB
Makefile
62 lines
1.5 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
|
|
|
|
# The default target of this Makefile is...
|
|
all::
|
|
|
|
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/
|
|
|
|
INSTALL = install
|
|
|
|
SCRIPT_PERL_FULL=$(patsubst %,$(HERE)/%,$(SCRIPT_PERL))
|
|
INSTLIBDIR=$(shell $(MAKE) -C $(GIT_ROOT_DIR)/ \
|
|
-s --no-print-directory prefix=$(prefix) \
|
|
perllibdir=$(perllibdir) perllibdir)
|
|
DESTDIR_SQ = $(subst ','\'',$(DESTDIR))
|
|
INSTLIBDIR_SQ = $(subst ','\'',$(INSTLIBDIR))
|
|
|
|
all:: build
|
|
|
|
test: all
|
|
$(MAKE) -C t
|
|
|
|
check: perlcritic test
|
|
|
|
install_pm:
|
|
$(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(INSTLIBDIR_SQ)/Git'
|
|
$(INSTALL) -m 644 $(GIT_MEDIAWIKI_PM) \
|
|
'$(DESTDIR_SQ)$(INSTLIBDIR_SQ)/$(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
|
|
|
|
perlcritic:
|
|
perlcritic -5 $(SCRIPT_PERL)
|
|
-perlcritic -2 $(SCRIPT_PERL)
|
|
|
|
.PHONY: all test check install_pm install clean perlcritic
|