0
|
1 # Generated automatically from Makefile.in.in by configure.
|
|
2 /* Makefile for man subdirectory in XEmacs
|
|
3 Copyright (C) 1995 Board of Trustees, University of Illinois
|
|
4 Copyright (C) 1994, 1995 Sun Microsystems.
|
|
5
|
|
6 This file is part of XEmacs.
|
|
7
|
|
8 XEmacs is free software; you can redistribute it and/or modify it
|
|
9 under the terms of the GNU General Public License as published by the
|
|
10 Free Software Foundation; either version 2, or (at your option) any
|
|
11 later version.
|
|
12
|
|
13 XEmacs is distributed in the hope that it will be useful, but WITHOUT
|
|
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
16 for more details.
|
|
17
|
|
18 You should have received a copy of the GNU General Public License
|
|
19 along with XEmacs; see the file COPYING. If not, write to the Free
|
|
20 Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
|
|
21
|
|
22 /* Avoid trouble on systems where the `SHELL' variable might be
|
|
23 inherited from the environment. */
|
|
24 SHELL = /bin/sh
|
|
25
|
|
26 /* Some people use these in paths they define. We don't want their paths
|
|
27 getting changed on them. */
|
|
28 #undef sparc
|
|
29 #undef sun
|
|
30 #undef unix
|
|
31 #undef i386
|
|
32 #undef ppc
|
|
33 #undef sgi
|
|
34
|
|
35 /* ==================== Things `configure' will edit ==================== */
|
|
36
|
|
37 CC=gcc
|
|
38 CFLAGS=-bi486-linuxaout -O4 -m486 -malign-functions=2 -malign-jumps=2 -malign-loops=2
|
|
39 YACC=bison -y
|
|
40 version=19.14
|
|
41 configuration=i486-unknown-linux2.0.0
|
|
42
|
|
43 /* ==================== Where To Install Things ==================== */
|
|
44
|
|
45 /* The default location for installation. Everything is placed in
|
|
46 subdirectories of this directory. The default values for many of
|
|
47 the variables below are expressed in terms of this one, so you may
|
|
48 not need to change them. This is set with the --prefix option to
|
|
49 `../configure'. */
|
|
50 prefix=/usr/local
|
|
51
|
|
52 /* Like `prefix', but used for architecture-specific files. This is
|
|
53 set with the --exec-prefix option to `../configure'. */
|
|
54 exec_prefix=${prefix}
|
|
55
|
|
56 /* Where to install Emacs and other binaries that people will want to
|
|
57 run directly (like etags). This is set with the --bindir option
|
|
58 to `../configure'. */
|
|
59 bindir=${exec_prefix}/bin
|
|
60
|
|
61 /* Where to install and expect executable files to be run by Emacs
|
|
62 rather than directly by users, and other architecture-dependent
|
|
63 data. ${archlibdir} is usually below this. This is set with the
|
|
64 --libdir option to `../configure'. */
|
|
65 libdir=${exec_prefix}/lib
|
|
66
|
|
67 /* Where to find the source code. This is set by the configure
|
|
68 script's `--srcdir' option. However, the value of ${srcdir} in
|
|
69 this makefile is not identical to what was specified with --srcdir,
|
|
70 since the variable here has `/man' added at the end. */
|
|
71 srcdir=/m/xemacs-19.14/man
|
|
72
|
|
73 /* ============================= Targets ============================== */
|
|
74
|
|
75 #define NO_SHORTNAMES
|
|
76 #define THIS_IS_YMAKEFILE
|
|
77 #define NOT_C_CODE
|
|
78 #include "../src/config.h"
|
|
79
|
|
80 /* With the traditional VPATH setting, it is not possible to
|
|
81 simultaneously compile in-place and in another directory. The
|
|
82 mistaken definition is that *all* dependencies are searched for in
|
|
83 the VPATH directory, rather than just the dependencies that are not
|
|
84 themselves targets. Thus, if there is an up-to-date .o file in the
|
|
85 in-place location, it will not get recompiled in the not-in-place
|
|
86 location.
|
|
87
|
|
88 The GNU Make `vpath' directive continues this tradition, but at
|
|
89 least lets you restrict the classes of files that it applies to.
|
|
90 This allows us to kludge around the problem. */
|
|
91 #ifdef USE_GNU_MAKE
|
|
92 vpath %.c /m/xemacs-19.14/man
|
|
93 vpath %.h /m/xemacs-19.14/man
|
|
94 /* now list files that should NOT be searched in the srcdir.
|
|
95 This includes any .c or .h that's built from something else
|
|
96 (e.g. a .in file). */
|
|
97 /* none here */
|
|
98 #else
|
|
99 VPATH=/m/xemacs-19.14/man
|
|
100 #endif
|
|
101
|
|
102 #ifndef C_SWITCH_SYSTEM
|
|
103 #define C_SWITCH_SYSTEM
|
|
104 #endif
|
|
105
|
|
106 #ifndef C_SWITCH_SITE
|
|
107 #define C_SWITCH_SITE
|
|
108 #endif
|
|
109
|
|
110 #ifndef LD_SWITCH_SITE
|
|
111 #define LD_SWITCH_SITE
|
|
112 #endif
|
|
113
|
|
114 LOADLIBES=LD_SWITCH_SITE -lgcc -lc -lgcc /usr/lib/crtn.o
|
|
115
|
|
116 CPPFLAGS=
|
|
117
|
|
118 ALL_CFLAGS = C_SWITCH_SITE C_SWITCH_SYSTEM -Demacs -DHAVE_CONFIG_H \
|
|
119 -DHAVE_STDARG_H -DHAVE_STRING_H -DHAVE_ALLOCA_H -Dxfree=free \
|
|
120 -I. -I../src -I${srcdir} -I${srcdir}/../src ${CFLAGS}
|
|
121 CPP_CFLAGS = C_SWITCH_SITE C_SWITCH_SYSTEM -Demacs -DHAVE_CONFIG_H \
|
|
122 -DHAVE_STDARG_H -DHAVE_STRING_H -DHAVE_ALLOCA_H -Dxfree=free \
|
|
123 -I. -I../src -I${srcdir} -I${srcdir}/../src ${CPPFLAGS} ${CFLAGS}
|
|
124 OBJS = makeinfo.o getopt.o getopt1.o alloca.o
|
|
125
|
|
126 /* Subdirectories to make recursively. */
|
|
127 SUBDIR = xemacs lispref new-users-guide internals
|
|
128
|
|
129 /* The makefiles of the directories in $SUBDIR. */
|
|
130 SUBDIR_MAKEFILES = xemacs/Makefile lispref/Makefile new-users-guide/Makefile internals/Makefile
|
|
131
|
|
132 .c.o:
|
|
133 ${CC} -c ${CPP_CFLAGS} $<
|
|
134
|
|
135 ../info/%.info : %.texi
|
|
136 -./makeinfo -o $@ $<
|
|
137
|
|
138 srcs = ange-ftp cc-mode cl dired ediff external-widget forms gnus \
|
|
139 hyperbole ilisp info internals ispell mailcrypt message mh-e \
|
|
140 oo-browser pcl-cvs psgml rmail standards supercite term termcap \
|
|
141 texinfo viper vm w3 xemacs-faq
|
|
142
|
|
143 info = $(srcs:%=../info/%.info)
|
|
144
|
|
145 all : ${SUBDIR} $(info)
|
|
146
|
|
147 .RECURSIVE: ${SUBDIR}
|
|
148
|
|
149 xemacs: FRC.xemacs
|
|
150 lispref: FRC.lispref
|
|
151 new-users-guide: FRC.new-users-guide
|
|
152 internals: FRC.internals
|
|
153
|
|
154 ${SUBDIR}: ${SUBDIR_MAKEFILES} makeinfo FRC
|
|
155 cd $@ && $(MAKE) all $(MFLAGS) \
|
|
156 CC='${CC}' CFLAGS='${CFLAGS}' MAKE='${MAKE}'
|
|
157
|
|
158 makeinfo: ../src/config.h $(OBJS)
|
|
159 $(CC) -o makeinfo $(OBJS)
|
|
160
|
|
161 texindex: texindex.o
|
|
162 $(CC) -o texindex texindex.o
|
|
163
|
|
164 alloca.c :
|
|
165 [ -h alloca.c ] || ln -s ../src/alloca.c .
|
|
166
|
|
167 getopt.h :
|
|
168 [ -h getopt.h ] || ln -s ../lib-src/getopt.h .
|
|
169
|
|
170 getopt.c :
|
|
171 [ -h getopt.c ] || ln -s ../lib-src/getopt.c .
|
|
172
|
|
173 getopt1.c :
|
|
174 [ -h getopt1.c ] || ln -s ../lib-src/getopt1.c .
|
|
175
|
|
176 mostlyclean: clean
|
|
177 (cd xemacs && $(MAKE) $(MFLAGS) mostlyclean)
|
|
178 (cd lispref && $(MAKE) $(MFLAGS) mostlyclean)
|
|
179 (cd new-users-guide && $(MAKE) $(MFLAGS) mostlyclean)
|
|
180 (cd internals && $(MAKE) $(MFLAGS) mostlyclean)
|
|
181
|
|
182 clean:
|
|
183 rm -f *.dvi
|
|
184 rm -f getopt1.c getopt.c getopt.h alloca.c makeinfo texindex
|
|
185 rm -f *.toc *.aux *.log *.cp *.fn *.ky *.pg *.vr *.o core
|
|
186
|
|
187 /* These are needed because they are present in the other makefiles. */
|
|
188 distclean: mostlyclean
|
|
189 (cd xemacs && $(MAKE) $(MFLAGS) distclean)
|
|
190 (cd lispref && $(MAKE) $(MFLAGS) distclean)
|
|
191 (cd new-users-guide && $(MAKE) $(MFLAGS) distclean)
|
|
192 (cd internals && $(MAKE) $(MFLAGS) distclean)
|
|
193 rm -f Makefile Makefile.in
|
|
194 realclean: distclean
|
|
195 (cd xemacs && $(MAKE) $(MFLAGS) realclean)
|
|
196 (cd lispref && $(MAKE) $(MFLAGS) realclean)
|
|
197 (cd new-users-guide && $(MAKE) $(MFLAGS) realclean)
|
|
198 (cd internals && $(MAKE) $(MFLAGS) realclean)
|
|
199 extraclean: distclean
|
|
200 (cd xemacs && $(MAKE) $(MFLAGS) extraclean)
|
|
201 (cd lispref && $(MAKE) $(MFLAGS) extraclean)
|
|
202 (cd new-users-guide && $(MAKE) $(MFLAGS) extraclean)
|
|
203 (cd internals && $(MAKE) $(MFLAGS) extraclean)
|
|
204 -rm -f *~ \#*
|
|
205
|
|
206 makeinfo.o : getopt.h
|
|
207 getopt.o : getopt.h
|
|
208 getopt1.o : getopt.h
|
|
209 texindex.o : getopt.h
|
|
210
|
|
211 FRC FRC.xemacs FRC.lispref FRC.new-users-guide FRC.internals:
|
|
212
|