File: DocMakefile

package info (click to toggle)
gnustep-base 1.31.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 26,580 kB
  • sloc: objc: 239,446; ansic: 36,519; cpp: 122; sh: 112; makefile: 100; xml: 32
file content (116 lines) | stat: -rw-r--r-- 2,975 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
#
#  Makefile for GNUstep Base Tools documentation.
#  
#  Copyright (C) 2004 Free Software Foundation, Inc.
#
#  Written by:	Adrian Robert <arobert@cogsci.ucsd.edu>
#
#  This file is part of the GNUstep Base Library.
#
#  This library is free software; you can redistribute it and/or
#  modify it under the terms of the GNU General Public
#  License as published by the Free Software Foundation; either
#  version 2 of the License, or (at your option) any later version.
#
#  This library is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the GNU
#  General Public License for more details.
#
#  You should have received a copy of the GNU General Public
#  License along with this library; if not, write to the Free
#  Software Foundation, Inc., 31 Milk Street #960789 Boston, MA 02196 USA
#

MAKEFILE_NAME = DocMakefile

include $(GNUSTEP_MAKEFILES)/common.make
include ../config.mak

DOCUMENT_NAME = BaseTools

BaseTools_DOC_INSTALL_DIR = Developer

BaseTools_AGSDOC_FILES = \
../Tools/BaseTools.gsdoc \
../Tools/gsdoc.gsdoc \
../Tools/gdomap.gsdoc \
AGSHtml.h \
AGSIndex.h \
AGSOutput.h \
AGSParser.h \
autogsdoc.m \
cvtenc.m \
defaults.m \
gdnc.m \
gdomap.c \
gspath.m \
pldes.m \
plser.m \
plmerge.m \
plparse.m \
pl2link.m \
sfparse.m \
xmlparse.m


#
# Hack ... using the -DocumentationDirectory flag overrides the value
# used by the make package, and puts our output in the documentation
# directory.
#
BaseTools_AGSDOC_FLAGS = \
	-MakeFrames YES \
	-DocumentationDirectory ../Documentation/BaseTools \
	-HeaderDirectory ../Tools \
	-Standards YES \
	-DTDs ../Tools \
	-WordMap '{\
	}' -Up BaseTools

# Use local version of autogsdoc in case it is not installed
AUTOGSDOC=../Tools/$(GNUSTEP_OBJ_DIR_NAME)/autogsdoc
BASE_MAKE_LOADED=yes

include $(GNUSTEP_MAKEFILES)/documentation.make

#
# Ensure that our destination subdirectory exists in the Documentation
# directory, and temporarily copy the base source file here for autogsdoc
# to use.
#
before-all::	../Documentation/BaseTools \
	../Documentation/BaseTools/gsdoc.gsdoc \
	../Documentation/BaseTools/gdomap.gsdoc
	cp -f ../Tools/BaseTools.gsdoc ../Documentation/BaseTools

../Documentation/BaseTools:
	$(MKDIRS) ../Documentation/BaseTools

../Documentation/BaseTools/gsdoc.gsdoc: ../Tools/gsdoc.gsdoc
	cp -f ../Tools/gsdoc.gsdoc ../Documentation/BaseTools

../Documentation/BaseTools/gdomap.gsdoc: ../Tools/gdomap.gsdoc
	cp -f ../Tools/gdomap.gsdoc ../Documentation/BaseTools

#
# Work around our screwy doc generation implementation, sigh...
#
before-clean::
	if [ -e obj ]; then \
	  mv obj obj-save-link; \
	fi

#
# Clean up temporary files used while generating documentation.
#
after-clean::
	if [ -d BaseTools ]; then \
	  $(RM) BaseTools/stamp; \
	  $(RM) BaseTools/dependencies; \
	  rmdir BaseTools; \
	fi
	if [ -e obj-save-link ]; then \
	  mv obj-save-link obj; \
	fi