2
# Makefile for GNUstep Base Library documentation.
4
# Copyright (C) 2002 Free Software Foundation, Inc.
6
# Written by: Richard Frith-Macdonald <rfm.gnu.org>
8
# This file is part of the GNUstep Base Library.
10
# This library is free software; you can redistribute it and/or
11
# modify it under the terms of the GNU Lesser General Public
12
# License as published by the Free Software Foundation; either
13
# version 2 of the License, or (at your option) any later version.
15
# This library is distributed in the hope that it will be useful,
16
# but WITHOUT ANY WARRANTY; without even the implied warranty of
17
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18
# Library General Public License for more details.
20
# You should have received a copy of the GNU Lesser General Public
21
# License along with this library; if not, write to the Free
22
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
23
# Boston, MA 02111 USA
26
MAKEFILE_NAME = DocMakefile
28
include $(GNUSTEP_MAKEFILES)/common.make
31
DOCUMENT_NAME = Base BaseAdditions
33
Base_DOC_INSTALL_DIR = Developer
34
BaseAdditions_DOC_INSTALL_DIR = Developer
37
../Documentation/Base.gsdoc \
41
NSAttributedString.h \
46
NSClassDescription.h \
58
NSDistributedNotificationCenter.h \
69
NSHTTPCookieStorage.h \
75
NSKeyValueObserving.h \
81
NSNotificationQueue.h \
87
NSPointerFunctions.h \
109
NSURLAuthenticationChallenge.h \
113
NSURLCredentialStorage.h \
118
NSURLProtectionSpace.h \
124
NSValueTransformer.h \
136
BaseAdditions_AGSDOC_FILES = \
137
../Documentation/BaseAdditions.gsdoc \
151
NSArray+GNUstepBase.h \
152
NSAttributedString+GNUstepBase.h \
153
NSBundle+GNUstepBase.h \
154
NSCalendarDate+GNUstepBase.h \
155
NSData+GNUstepBase.h \
156
NSDebug+GNUstepBase.h \
157
NSFileHandle+GNUstepBase.h \
158
NSLock+GNUstepBase.h \
159
NSMutableString+GNUstepBase.h \
160
NSNumber+GNUstepBase.h \
161
NSObject+GNUstepBase.h \
162
NSProcessInfo+GNUstepBase.h \
163
NSString+GNUstepBase.h \
164
NSTask+GNUstepBase.h \
165
NSThread+GNUstepBase.h \
166
NSURL+GNUstepBase.h \
172
# Hack ... using the -DocumentationDirectory flag overrides the value
173
# used by the make package, and puts our output in the documentation
176
Base_AGSDOC_FLAGS = \
178
-DocumentationDirectory ../Documentation/Base \
179
-HeaderDirectory ../Headers/Foundation \
180
-Declared Foundation \
182
-ConstantsTemplate TypesAndConstants \
183
-FunctionsTemplate Functions \
184
-MacrosTemplate Functions \
185
-TypedefsTemplate TypesAndConstants \
186
-VariablesTemplate TypesAndConstants \
188
DEFINE_BLOCK_TYPE="//";\
189
FOUNDATION_EXPORT=extern;\
190
FOUNDATION_STATIC_INLINE="";\
191
GS_ATTRIB_DEPRECATED="";\
193
GS_DEPRECATED_FUNC="";\
197
GS_GEOM_SCOPE=extern;\
198
GS_NORETURN_METHOD="";\
199
GS_PRIVATE_INTERNAL="//";\
201
GS_RANGE_SCOPE=extern;\
203
GS_STATIC_INLINE="";\
208
GS_ZONE_SCOPE=extern;\
210
NS_AUTOMATED_REFCOUNT_UNAVAILABLE="";\
212
NS_CONSUMES_SELF="";\
213
NS_RETURNS_NOT_RETAINED="";\
214
NS_RETURNS_RETAINED="";\
220
BaseAdditions_AGSDOC_FLAGS = \
222
-DocumentationDirectory ../Documentation/BaseAdditions \
223
-HeaderDirectory ../Headers/GNUstepBase \
224
-Declared GNUstepBase \
227
-ConstantsTemplate TypesAndConstants \
228
-FunctionsTemplate Functions \
229
-MacrosTemplate Functions \
230
-TypedefsTemplate TypesAndConstants \
231
-VariablesTemplate TypesAndConstants \
233
DEFINE_BLOCK_TYPE="//";\
234
FOUNDATION_EXPORT=extern;\
235
FOUNDATION_STATIC_INLINE="";\
236
GS_ATTRIB_DEPRECATED="";\
240
GS_GEOM_SCOPE=extern;\
241
GS_NORETURN_METHOD="";\
242
GS_PRIVATE_INTERNAL="//";\
244
GS_RANGE_SCOPE=extern;\
245
GS_STATIC_INLINE="";\
248
GS_ZONE_SCOPE=extern;\
251
NS_CONSUMES_SELF="";\
252
NS_RETURNS_NOT_RETAINED="";\
253
NS_RETURNS_RETAINED="";\
257
# Use local version of autogsdoc in case it is not installed
258
AUTOGSDOC=../Tools/$(GNUSTEP_OBJ_DIR_NAME)/autogsdoc
260
# Fool make into thinking we are installed even if we are not
263
include $(GNUSTEP_MAKEFILES)/documentation.make
266
# Ensure that our destination subdirectory exists in the Documentation
267
# directory, and temporarily copy the base source file here for autogsdoc
270
before-all:: ../Documentation/Base \
271
../Documentation/Base/Functions.gsdoc \
272
../Documentation/Base/TypesAndConstants.gsdoc \
273
../Documentation/BaseAdditions \
274
../Documentation/BaseAdditions/Functions.gsdoc \
275
../Documentation/BaseAdditions/TypesAndConstants.gsdoc
276
cp ../Documentation/Base.gsdoc .
277
cp ../Documentation/BaseAdditions.gsdoc .
279
../Documentation/Base:
280
$(MKDIRS) ../Documentation/Base
282
../Documentation/Base/Functions.gsdoc: ../Documentation/Functions.gsdoc
283
cp ../Documentation/Functions.gsdoc ../Documentation/Base
285
../Documentation/Base/TypesAndConstants.gsdoc: \
286
../Documentation/TypesAndConstants.gsdoc
287
cp ../Documentation/TypesAndConstants.gsdoc ../Documentation/Base
289
../Documentation/BaseAdditions:
290
$(MKDIRS) ../Documentation/BaseAdditions
292
../Documentation/BaseAdditions/Functions.gsdoc: \
293
../Documentation/Functions.gsdoc
294
cp ../Documentation/Functions.gsdoc ../Documentation/BaseAdditions
296
../Documentation/BaseAdditions/TypesAndConstants.gsdoc: \
297
../Documentation/TypesAndConstants.gsdoc
298
cp ../Documentation/TypesAndConstants.gsdoc \
299
../Documentation/BaseAdditions
302
# Work around our screwy doc generation implementation, sigh...
305
if [ -e obj ]; then \
306
mv obj obj-save-link; \
310
# Clean up temporary files used while generating documentation.
314
$(RM) BaseAdditions.gsdoc
315
if [ -d Base ]; then \
317
$(RM) Base/dependencies; \
319
$(RM) BaseAdditions/stamp; \
320
$(RM) BaseAdditions/dependencies; \
321
rmdir BaseAdditions; \
323
if [ -e obj-save-link ]; then \
324
mv obj-save-link obj; \