Let the user skip building documentation if skip_documentation=yes is

supplied to the make invocation.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@39437 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
thebeing 2016-03-02 10:52:12 +00:00
parent 8aec1d937b
commit 2fde176445
3 changed files with 41 additions and 1 deletions

View file

@ -1,3 +1,11 @@
2016-03-02 Niels Grewe <niels.grewe@halbordnung.de>
* Master/documentation.make:
Support skipping the documentation build if skip_documentation=yes
is supplied
* Documentation/gnustep-make.texi:
Document the new skip_documentation feature (and messages=yes, which
as also missing).
2015-12-11 23:34-EST Gregory John Casamento <greg.casamento@gmail.com>
* common.make: Mute error when trying to parse redhat-version

View file

@ -1515,4 +1515,24 @@ directory on disk for this filesystem layout and installation domain.
By default the Makefile Package sets
@code{GNUSTEP_INSTALLATION_DOMAIN} to @code{LOCAL}.
@defvar messages
@code{messages} can be set to @samp{yes} in order to increase the
verbosity and see all the commands the make is executing.
@end defvar
@smallexample
make messages=yes
@end smallexample
@defvar skip_documentation
@code{skip_documentation} controls whether the documentation targets in
a project will be executed. If you don't desire building the
documentation (which might require a working LaTeX installation, etc.)
you can set this to @samp{yes}.
@end defvar
@smallexample
make skip_documentation=yes
@end smallexample
@bye

View file

@ -24,6 +24,18 @@ ifeq ($(RULES_MAKE_LOADED),)
include $(GNUSTEP_MAKEFILES)/rules.make
endif
ifeq ($(skip_documentation),yes)
internal-all::
$(info Not building documentation on user request)
internal-install::
$(info Not building documentation on user request)
internal-uninstall::
$(info Not building documentation on user request)
internal-clean::
$(info Not building documentation on user request)
insternal-distclean::
$(info Not building documentation on user request)
else
DOCUMENT_NAME := $(strip $(DOCUMENT_NAME))
DOCUMENT_TEXT_NAME := $(strip $(DOCUMENT_TEXT_NAME))
@ -42,7 +54,7 @@ internal-clean:: $(DOCUMENT_NAME:=.clean.doc.variables) \
internal-distclean:: $(DOCUMENT_NAME:=.distclean.doc.variables) \
$(DOCUMENT_TEXT_NAME:=.distclean.textdoc.variables)
endif
#$(DOCUMENT_NAME):
# @$(MAKE) -f $(MAKEFILE_NAME) --no-print-directory \
# $@.all.doc.variables