use MAKEINFO macro
[deliverable/binutils-gdb.git] / gas / doc / Makefile.in
CommitLineData
79a54a5b
RP
1# Makefile for GNU Assembler documentation
2# - see pretex.m4 for discussion of preprocessor definitions
3# Copyright (C) 1987-1992 Free Software Foundation, Inc.
4
5#This file is part of GNU GAS.
6
7#GNU GAS is free software; you can redistribute it and/or modify
8#it under the terms of the GNU General Public License as published by
9#the Free Software Foundation; either version 2, or (at your option)
10#any later version.
11
12#GNU GAS is distributed in the hope that it will be useful,
13#but WITHOUT ANY WARRANTY; without even the implied warranty of
14#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15#GNU General Public License for more details.
16
17#You should have received a copy of the GNU General Public License
18#along with GNU GAS; see the file COPYING. If not, write to
19#the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
20
21# The targets for external use include:
22# all, doc, proto, install, uninstall, includes, TAGS,
23# clean, cleanconfig, realclean, stage1, stage2, stage3, stage4.
24
25# Variables that exist for you to override.
26# See below for how to change them for certain systems.
27
28srcdir = .
29
30prefix = /usr/local
31
32bindir = $(prefix)/bin
33datadir = $(prefix)/lib
34libdir = $(prefix)/lib
35mandir = $(datadir)/man
36man1dir = $(mandir)/man1
37man2dir = $(mandir)/man2
38man3dir = $(mandir)/man3
39man4dir = $(mandir)/man4
40man5dir = $(mandir)/man5
41man6dir = $(mandir)/man6
42man7dir = $(mandir)/man7
43man8dir = $(mandir)/man8
44man9dir = $(mandir)/man9
45infodir = $(datadir)/info
46includedir = $(prefix)/include
47docdir = $(datadir)/doc
48
49SHELL = /bin/sh
50
51INSTALL = install -c
52INSTALL_PROGRAM = $(INSTALL)
53INSTALL_DATA = $(INSTALL)
54
55AR = ar
56AR_FLAGS = qv
57BISON = bison
58MAKEINFO = makeinfo
59RANLIB = ranlib
60
61# What version of the manual you want (see *.m4); "all" includes everything
62CONFIG=all
63
64# Sun/Berkeley m4 doesn't have all the things we need; use GNU or sV
65M4=gm4
66#M4=/usr/5bin/m4
67
68# Directory for gas source
69srcdir=..
70
71# Where to find texinfo.tex to format docn with TeX
72TEXIDIR = $(srcdir)/../texinfo/fsf
73
74#### host, target, and site specific Makefile frags come in here.
75##
76
77all:
78clean:
79install:
80
81info: as.info
82
83as.info: as-${CONFIG}.texinfo
84 makeinfo -o as.info as-${CONFIG}.texinfo
85
86install-info: as.info
87 [ -d $(infodir) ] || mkdir $(infodir)
88 for i in as.info* ; do \
89 $(INSTALL_DATA) $$i $(infodir)/$$i ; \
90 done
91
92as.dvi: as-${CONFIG}.texinfo
93 TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex as-${CONFIG}.texinfo
94 texindex as-${CONFIG}.??
95 TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex as-${CONFIG}.texinfo
96 mv as-${CONFIG}.dvi as.dvi
97 rm as-${CONFIG}.?? as-${CONFIG}.???
98
99# ROFF doc targets as.ms, as.mm, as.me
100# (we don't use a variable because we don't trust all makes to handle
101# a var in the target name right).
102# roff output (-ms)
103as.ms: as-${CONFIG}.texinfo
104 sed -e '/\\input texinfo/d' \
105 -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
106 -e 's/{.*,,/{/' \
107 as-${CONFIG}.texinfo | \
108 texi2roff -ms >as.ms
109
110# roff output (-mm)
111as.mm: as-${CONFIG}.texinfo
112 sed -e '/\\input texinfo/d' \
113 -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
114 -e 's/{.*,,/{/' \
115 -e '/@noindent/d' \
116 as-${CONFIG}.texinfo | \
117 texi2roff -mm | \
118 sed -e 's/---/\\(em/g' \
119 >as.mm
120
121# roff output (-me)
122as.me: as-${CONFIG}.texinfo
123 sed -e '/\\input texinfo/d' \
124 -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
125 -e 's/{.*,,/{/' \
126 as-${CONFIG}.texinfo | \
127 texi2roff -me >as.me
128
129
130
131as-all.texinfo: as.texinfo pretex.m4 none.m4 all.m4
132 ${M4} $(srcdir)/pretex.m4 $(srcdir)/none.m4 $(srcdir)/all.m4 $(srcdir)/as.texinfo >as-all.texinfo
133
134as-a29k.texinfo: as.texinfo pretex.m4 none.m4 a29k.m4
135 ${M4} pretex.m4 none.m4 a29k.m4 as.texinfo >as-a29k.texinfo
136
137as-a29k-coff.texinfo: as.texinfo pretex.m4 none.m4 a29k-coff.m4
138 ${M4} pretex.m4 none.m4 a29k-coff.m4 as.texinfo >as-a29k-coff.texinfo
139
140as-gen.texinfo: as.texinfo pretex.m4 none.m4 gen.m4
141 ${M4} pretex.m4 none.m4 gen.m4 as.texinfo >as-gen.texinfo
142
143as-h8.texinfo: as.texinfo pretex.m4 none.m4 h8.m4
144 ${M4} pretex.m4 none.m4 h8.m4 as.texinfo >as-h8.texinfo
145
146as-i80386.texinfo: as.texinfo pretex.m4 none.m4 i80386.m4
147 ${M4} pretex.m4 none.m4 i80386.m4 as.texinfo >as-i80386.texinfo
148
149as-i960.texinfo: as.texinfo pretex.m4 none.m4 i960.m4
150 ${M4} pretex.m4 none.m4 i960.m4 as.texinfo >as-i960.texinfo
151
152as-m680x0.texinfo: as.texinfo pretex.m4 none.m4 m680x0.m4
153 ${M4} pretex.m4 none.m4 m680x0.m4 as.texinfo >as-m680x0.texinfo
154
155as-sparc.texinfo: as.texinfo pretex.m4 none.m4 sparc.m4
156 ${M4} pretex.m4 none.m4 sparc.m4 as.texinfo >as-sparc.texinfo
157
158as-vax.texinfo: as.texinfo pretex.m4 none.m4 vax.m4
159 ${M4} pretex.m4 none.m4 vax.m4 as.texinfo >as-vax.texinfo
160
161as-vintage.texinfo: as.texinfo pretex.m4 none.m4 vintage.m4
162 ${M4} pretex.m4 none.m4 vintage.m4 as.texinfo >as-vintage.texinfo
163
164clean-info:
165 rm -f as-${CONFIG}.* as.dvi as.info*
166
167force:
168
169Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
170 $(SHELL) ./config.status
171
This page took 0.041189 seconds and 4 git commands to generate.