* rs6000.c (output_function_profiler): Put label address in r0, and
[official-gcc.git] / texinfo / Makefile.in
blobe9c814fc0cae7bc8e69dca64095193ba004059f6
1 # Makefile for Texinfo distribution.
2 # $Id: Makefile.in,v 1.5 1998/03/17 01:38:14 manfred Exp $
3 #
4 # Copyright (C) 1993, 96 Free Software Foundation, Inc.
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2, or (at your option)
9 # any later version.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 #### Start of system configuration section. ####
22 srcdir = @srcdir@
23 VPATH = $(srcdir):$(common)
25 common = $(srcdir)/libtxi
27 EXEEXT = @EXEEXT@
28 CC = @CC@
30 INSTALL = @INSTALL@
31 INSTALL_PROGRAM = @INSTALL_PROGRAM@
32 INSTALL_DATA = @INSTALL_DATA@
34 LN = ln
35 RM = rm -f
36 TAR = tar
37 MKDIR = mkdir
39 DEFS = @DEFS@
40 LIBS = @LIBS@
41 LOADLIBES = $(LIBS)
43 ALLOCA = @ALLOCA@
45 SHELL = /bin/sh
47 CFLAGS = @CFLAGS@
48 LDFLAGS = @LDFLAGS@
50 prefix = @prefix@
51 exec_prefix = @exec_prefix@
52 bindir = @bindir@
53 # Prefix for each installed program, normally empty or `g'.
54 binprefix =
55 # Prefix for each installed man page, normally empty or `g'.
56 manprefix =
57 mandir = @mandir@/man$(manext)
58 manext = 1
59 infodir = @infodir@
61 # For info program.
62 DEFAULT_INFOPATH = $(infodir):.
64 #### End of system configuration section. ####
66 VERSION = 3.9
67 DISTNAME = texinfo-$(VERSION)
69 # Subdirectories that have makefiles
70 SUBDIRS = libtxi makeinfo util emacs
72 # All subdirectories that go into a distribution
73 ALL_SUBDIRS = $(SUBDIRS) makeinfo/macros
75 MDEFINES = bindir='$(bindir)' mandir='$(mandir)' manext='$(manext)' \
76 prefix='$(prefix)' binprefix='$(binprefix)' \
77 manprefix='$(manprefix)' infodir='$(infodir)' CFLAGS='$(CFLAGS)' \
78 CC='$(CC)' ALLOCA='$(ALLOCA)' LDFLAGS='$(LDFLAGS)' \
79 DEFAULT_INFOPATH='$(DEFAULT_INFOPATH)' \
80 INSTALL='$(INSTALL)' INSTALL_DATA='$(INSTALL_DATA)' \
81 INSTALL_PROGRAM='$(INSTALL_PROGRAM)'
83 all: texinfo
85 check:
86 installcheck:
87 dvi: texinfo.dvi license.dvi lgpl.dvi
88 @for dir in $(SUBDIRS); do cd $$dir; $(MAKE) $(FLAGS_TO_PASS) $@; cd ..; done
90 .PHONY: install installdirs installcheck install-info uninstall
92 install installdirs installcheck install-info uninstall:
94 Makefile: Makefile.in config.status
95 $(SHELL) ./config.status
97 config.status: configure
98 $(SHELL) ./config.status --recheck
100 #configure: configure.in
101 # cd $(srcdir) && autoconf
103 TAGS:
104 for dir in $(SUBDIRS); do \
105 echo making $@ in $$dir; \
106 (cd $$dir && $(MAKE) $(MDEFINES) $@ || exit 1); \
107 done
109 stmp-sub-all:
110 -rm -f stmp-sub-all
111 for dir in $(SUBDIRS); do \
112 echo making sub-all in $$dir; \
113 (cd $$dir && $(MAKE) $(MDEFINES) sub-all || exit 1); \
114 done
115 touch stmp-sub-all
117 clean mostlyclean:
118 for dir in $(SUBDIRS); do \
119 echo making $@ in $$dir; \
120 (cd $$dir && $(MAKE) $(MDEFINES) $@ || exit 1); \
121 done
122 -rm -f stmp*
124 distclean: clean texclean
125 for dir in $(SUBDIRS); do \
126 echo making $@ in $$dir; \
127 (cd $$dir && $(MAKE) $(MDEFINES) $@ || exit 1); \
128 done
129 $(RM) Makefile *.status *.cache *.log texinfo texinfo-? texinfo-??
131 texclean:
132 $(RM) *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.kys *.pg *.pgs
133 $(RM) *.toc *.tp *.tps *.vr *.vrs
135 realclean maintainer-clean: distclean
137 # Let's hope we weren't cross-compiling.
138 # If we depend on sub-all, this always gets remade. Annoying.
139 info texinfo: texinfo.texi stmp-sub-all
140 ./makeinfo/makeinfo$(EXEEXT) -I$(srcdir) texinfo.texi
141 .PHONY: info
143 texinfo.dvi:
144 PATH="$(srcdir)/util:$${PATH}" TEXINPUTS="$(srcdir):$(common):$${TEXINPUTS}" texi2dvi $(srcdir)/texinfo.texi
145 .PHONY: dvi
147 license.info: $(srcdir)/license.texi
148 $(MAKEINFO) -I$(srcdir) -o license.info $(srcdir)/license.texi
150 license.dvi: $(srcdir)/license.texi
151 PATH="$(srcdir)/util:$${PATH}" TEXINPUTS="$(srcdir):$(common):$${TEXINPUTS}" texi2dvi $(srcdir)/license.texi
153 lgpl.info: $(srcdir)/liblic.texi
154 $(MAKEINFO) -I$(srcdir) -o lgpl.info $(srcdir)/liblic.texi
156 lgpl.dvi: $(srcdir)/liblic.texi
157 PATH="$(srcdir)/util:$${PATH}" TEXINPUTS="$(srcdir):$(common):$${TEXINPUTS}" texi2dvi $(srcdir)/liblic.texi
158 mv liblic.dvi lgpl.dvi
160 dist: DISTFILES
161 $(RM) -r $(DISTNAME)
162 $(MKDIR) $(DISTNAME)
163 for d in `find . -type d ! -name RCS -print`; do \
164 d=`echo $$d | grep -v '[@=]'`; \
165 test -z "$$d" || test "$$d" = . || test "$$d" = "./$(DISTNAME)" \
166 || mkdir $(DISTNAME)/$$d; done
167 for f in `cat DISTFILES`; do \
168 $(LN) $(srcdir)/$$f $(DISTNAME)/$$f || \
169 { echo copying $$f; cp -p $(srcdir)/$$f $(DISTNAME)/$$f ; } \
170 done
171 (cd $(DISTNAME); $(MAKE) $(MFLAGS) distclean)
172 $(TAR) chvf - $(DISTNAME) | gzip >$(DISTNAME).tar.gz
173 $(RM) -r $(DISTNAME)
175 # Gets rid of most of the unwanted files. Verify manually (if necessary)
176 # that this produces a list of all the files desired in the distribution.
177 DISTFILES: force
178 (cd $(srcdir); find . ! -type d -print) \
179 | sed '/\/RCS\//d; \
180 /\/EMACS-BACKUPS\//d; \
181 /\.tar.*/d; \
182 /~$$/d; /\.o$$/d; \
183 /\.gdbinit$$/d; \
184 /\.orig$$/d; \
185 /\#$$/d; \
186 /\/info\/info$$/d; \
187 /\.info$$/d; \
188 /\.elc/d; \
189 /\/makeinfo\/makeinfo$$/d; \
190 /\/$(DISTNAME)\/.*$$/d; \
191 /\/util\/texindex$$/d; \
192 /texinfo$$/d; \
193 /texinfo-[0-9]+$$/d; \
194 /\/.*\.BAK$$/d; \
195 /\/.*\.a$$/d; \
196 /\/core$$/d; \
197 /\/*\.core$$/d; \
198 /\/core\..*$$/d; \
199 /\/a.out$$/d; \
200 /\/[=@]/d; \
201 /\/conftest\.c$$/d; \
202 /\/DISTFILES$$/d; \
203 /\/foo$$/d; \
204 /\/bar$$/d; \
205 /\.toc$$/d; \
206 /\.bak$$/d; \
207 /\.aux$$/d; /\.log$$/d; \
208 /\.cps$$/d; /\.cp$$/d; \
209 /\.fns$$/d; /\.fn$$/d; \
210 /\.tps$$/d; /\.tp$$/d; \
211 /\.vrs$$/d; /\.vr$$/d; \
212 /\.pgs$$/d; /\.pg$$/d; \
213 /\.kys$$/d; /\.ky$$/d; \
214 /\.ops$$/d; /\.op$$/d; \
215 s/^.\///; /^\.$$/d;' \
216 | sort | uniq > DISTFILES
218 force:
220 # Prevent GNU make v3 from overflowing arg limit on SysV.
221 .NOEXPORT: