1#   -*-makefile-*-
2#   Master/documentation.make
3#
4#   Master Makefile rules to build GNUstep-based documentation.
5#
6#   Copyright (C) 1998, 2000, 2001, 2002 Free Software Foundation, Inc.
7#
8#   Author:  Scott Christley <scottc@net-community.com>
9#   Author:  Nicola Pero <n.pero@mi.flashnet.it>
10#
11#   This file is part of the GNUstep Makefile Package.
12#
13#   This library is free software; you can redistribute it and/or
14#   modify it under the terms of the GNU General Public License
15#   as published by the Free Software Foundation; either version 3
16#   of the License, or (at your option) any later version.
17#
18#   You should have received a copy of the GNU General Public
19#   License along with this library; see the file COPYING.
20#   If not, write to the Free Software Foundation,
21#   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22
23ifeq ($(RULES_MAKE_LOADED),)
24include $(GNUSTEP_MAKEFILES)/rules.make
25endif
26
27ifeq ($(documentation),no)
28internal-all::
29  $(info Not building documentation on user request)
30internal-install::
31  $(info Not building documentation on user request)
32internal-uninstall::
33  $(info Not building documentation on user request)
34internal-clean::
35  $(info Not building documentation on user request)
36insternal-distclean::
37  $(info Not building documentation on user request)
38else
39DOCUMENT_NAME := $(strip $(DOCUMENT_NAME))
40DOCUMENT_TEXT_NAME := $(strip $(DOCUMENT_TEXT_NAME))
41
42# FIXME/TODO: Parallel build of documentation
43internal-all:: $(DOCUMENT_NAME:=.all.doc.variables) \
44              $(DOCUMENT_TEXT_NAME:=.all.textdoc.variables)
45
46internal-install:: $(DOCUMENT_NAME:=.install.doc.variables) \
47                   $(DOCUMENT_TEXT_NAME:=.install.textdoc.variables)
48
49internal-uninstall:: $(DOCUMENT_NAME:=.uninstall.doc.variables) \
50                     $(DOCUMENT_TEXT_NAME:=.uninstall.textdoc.variables)
51
52internal-clean:: $(DOCUMENT_NAME:=.clean.doc.variables) \
53                 $(DOCUMENT_TEXT_NAME:=.clean.textdoc.variables)
54
55internal-distclean:: $(DOCUMENT_NAME:=.distclean.doc.variables) \
56                     $(DOCUMENT_TEXT_NAME:=.distclean.textdoc.variables)
57endif
58#$(DOCUMENT_NAME):
59#	@$(MAKE) -f $(MAKEFILE_NAME) --no-print-directory \
60#		$@.all.doc.variables
61
62