Commit | Line | Data |
---|---|---|
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 | ||
28 | srcdir = . | |
29 | ||
30 | prefix = /usr/local | |
31 | ||
32 | bindir = $(prefix)/bin | |
33 | datadir = $(prefix)/lib | |
34 | libdir = $(prefix)/lib | |
35 | mandir = $(datadir)/man | |
36 | man1dir = $(mandir)/man1 | |
37 | man2dir = $(mandir)/man2 | |
38 | man3dir = $(mandir)/man3 | |
39 | man4dir = $(mandir)/man4 | |
40 | man5dir = $(mandir)/man5 | |
41 | man6dir = $(mandir)/man6 | |
42 | man7dir = $(mandir)/man7 | |
43 | man8dir = $(mandir)/man8 | |
44 | man9dir = $(mandir)/man9 | |
45 | infodir = $(datadir)/info | |
46 | includedir = $(prefix)/include | |
47 | docdir = $(datadir)/doc | |
48 | ||
49 | SHELL = /bin/sh | |
50 | ||
51 | INSTALL = install -c | |
52 | INSTALL_PROGRAM = $(INSTALL) | |
53 | INSTALL_DATA = $(INSTALL) | |
54 | ||
55 | AR = ar | |
56 | AR_FLAGS = qv | |
57 | BISON = bison | |
58 | MAKEINFO = makeinfo | |
59 | RANLIB = ranlib | |
60 | ||
61 | # What version of the manual you want (see *.m4); "all" includes everything | |
62 | CONFIG=all | |
63 | ||
64 | # Sun/Berkeley m4 doesn't have all the things we need; use GNU or sV | |
65 | M4=gm4 | |
66 | #M4=/usr/5bin/m4 | |
67 | ||
68 | # Directory for gas source | |
69 | srcdir=.. | |
70 | ||
71 | # Where to find texinfo.tex to format docn with TeX | |
72 | TEXIDIR = $(srcdir)/../texinfo/fsf | |
73 | ||
74 | #### host, target, and site specific Makefile frags come in here. | |
75 | ## | |
76 | ||
77 | all: | |
78 | clean: | |
79 | install: | |
80 | ||
81 | info: as.info | |
82 | ||
83 | as.info: as-${CONFIG}.texinfo | |
84 | makeinfo -o as.info as-${CONFIG}.texinfo | |
85 | ||
86 | install-info: as.info | |
87 | [ -d $(infodir) ] || mkdir $(infodir) | |
88 | for i in as.info* ; do \ | |
89 | $(INSTALL_DATA) $$i $(infodir)/$$i ; \ | |
90 | done | |
91 | ||
92 | as.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) | |
103 | as.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) | |
111 | as.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) | |
122 | as.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 | ||
131 | as-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 | ||
134 | as-a29k.texinfo: as.texinfo pretex.m4 none.m4 a29k.m4 | |
135 | ${M4} pretex.m4 none.m4 a29k.m4 as.texinfo >as-a29k.texinfo | |
136 | ||
137 | as-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 | ||
140 | as-gen.texinfo: as.texinfo pretex.m4 none.m4 gen.m4 | |
141 | ${M4} pretex.m4 none.m4 gen.m4 as.texinfo >as-gen.texinfo | |
142 | ||
143 | as-h8.texinfo: as.texinfo pretex.m4 none.m4 h8.m4 | |
144 | ${M4} pretex.m4 none.m4 h8.m4 as.texinfo >as-h8.texinfo | |
145 | ||
146 | as-i80386.texinfo: as.texinfo pretex.m4 none.m4 i80386.m4 | |
147 | ${M4} pretex.m4 none.m4 i80386.m4 as.texinfo >as-i80386.texinfo | |
148 | ||
149 | as-i960.texinfo: as.texinfo pretex.m4 none.m4 i960.m4 | |
150 | ${M4} pretex.m4 none.m4 i960.m4 as.texinfo >as-i960.texinfo | |
151 | ||
152 | as-m680x0.texinfo: as.texinfo pretex.m4 none.m4 m680x0.m4 | |
153 | ${M4} pretex.m4 none.m4 m680x0.m4 as.texinfo >as-m680x0.texinfo | |
154 | ||
155 | as-sparc.texinfo: as.texinfo pretex.m4 none.m4 sparc.m4 | |
156 | ${M4} pretex.m4 none.m4 sparc.m4 as.texinfo >as-sparc.texinfo | |
157 | ||
158 | as-vax.texinfo: as.texinfo pretex.m4 none.m4 vax.m4 | |
159 | ${M4} pretex.m4 none.m4 vax.m4 as.texinfo >as-vax.texinfo | |
160 | ||
161 | as-vintage.texinfo: as.texinfo pretex.m4 none.m4 vintage.m4 | |
162 | ${M4} pretex.m4 none.m4 vintage.m4 as.texinfo >as-vintage.texinfo | |
163 | ||
164 | clean-info: | |
165 | rm -f as-${CONFIG}.* as.dvi as.info* | |
166 | ||
167 | force: | |
168 | ||
169 | Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag) | |
170 | $(SHELL) ./config.status | |
171 |