aboutsummaryrefslogtreecommitdiff
path: root/gas/doc/Makefile.in
blob: c0a89f043c0ac6db77bc05a88a6f3168803e6cb9 (plain)
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
# Makefile for GNU Assembler documentation
#   Copyright (C) 1987-1993 Free Software Foundation, Inc.

#This file is part of GNU GAS.

#GNU GAS 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, or (at your option)
#any later version.

#GNU GAS 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 GNU GAS; see the file COPYING.  If not, write to
#the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

# The targets for external use include:
# all, doc, proto, install, uninstall, includes, TAGS,
# clean, cleanconfig, realclean, stage1, stage2, stage3, stage4.

# Variables that exist for you to override.

srcdir = @srcdir@
VPATH = @srcdir@

prefix = @prefix@

program_transform_name = @program_transform_name@
exec_prefix = @exec_prefix@
bindir = $(exec_prefix)/bin
libdir = $(exec_prefix)/lib

datadir = $(prefix)/lib
mandir = $(prefix)/man
man1dir = $(mandir)/man1
man2dir = $(mandir)/man2
man3dir = $(mandir)/man3
man4dir = $(mandir)/man4
man5dir = $(mandir)/man5
man6dir = $(mandir)/man6
man7dir = $(mandir)/man7
man8dir = $(mandir)/man8
man9dir = $(mandir)/man9
infodir = $(prefix)/info
includedir = $(prefix)/include
docdir = $(datadir)/doc

SHELL = /bin/sh

INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_XFORM1 = $(INSTALL) -b $(program_transform_name) .1

AR = ar
AR_FLAGS = qv
BISON = bison
MAKEINFO = makeinfo
TEXI2DVI = TEXINPUTS=$(TEXIDIR):$$TEXINPUTS texi2dvi
RANLIB = ranlib

# What version of the manual you want; "all" includes everything
CONFIG=all

# Where to find texinfo.tex to format docn with TeX
TEXIDIR = $(srcdir)/../../texinfo

##

all:
install:
	$(INSTALL_XFORM1) $(srcdir)/as.1 $(man1dir)/as.1

info: as.info gasp.info
dvi: as.dvi gasp.dvi

asconfig.texi: $(CONFIG).texi
	rm -f asconfig.texi
	ln -s $(srcdir)/$(CONFIG).texi ./asconfig.texi || \
	ln $(srcdir)/$(CONFIG).texi ./asconfig.texi || \
	cp $(srcdir)/$(CONFIG).texi ./asconfig.texi

as.info: $(srcdir)/as.texinfo asconfig.texi
	$(MAKEINFO) -I$(TEXIDIR) -o as.info $(srcdir)/as.texinfo

gasp.info: $(srcdir)/gasp.texi
	$(MAKEINFO) -o gasp.info $(srcdir)/gasp.texi

install-info: install-info-as install-info-gasp
install-info-as: as.info
	if [ -r as.info ]; then \
	  dir=. ; \
	else \
	  dir=$(srcdir) ; \
	fi ; \
	for i in `cd $$dir ; echo as.info*` ; do \
		$(INSTALL_DATA) $$dir/$$i $(infodir)/$$i ; \
	done
install-info-gasp: gasp.info
	if [ -r gasp.info ]; then \
	  dir=. ; \
	else \
	  dir=$(srcdir) ; \
	fi ; \
	for i in `cd $$dir ; echo gasp.info*` ; do \
		$(INSTALL_DATA) $$dir/$$i $(infodir)/$$i ; \
	done

as.dvi:	$(srcdir)/as.texinfo asconfig.texi
	$(TEXI2DVI) $(srcdir)/as.texinfo

gasp.dvi: $(srcdir)/gasp.texi
	$(TEXI2DVI) $(srcdir)/gasp.texi

# This one isn't ready for prime time yet.  Not even a little bit.
internals.dvi: $(srcdir)/internals.texi
	$(TEXI2DVI) $(srcdir)/internals.texi
internals.ps: internals.dvi
	dvips internals.dvi -o internals.ps
internals.ps4: internals.ps
	psnup -4 < internals.ps > internals.ps4

# ROFF doc targets as.ms, as.mm, as.me
# (we don't use a variable because we don't trust all makes to handle
# a var in the target name right).
# roff output (-ms)
# THESE ARE PROBABLY BROKEN until texi2roff extended for Texinfo conditionals
as.ms: $(srcdir)/as.texinfo asconfig.texi
	sed -e '/\\input texinfo/d' \
		-e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
		-e 's/{.*,,/{/' \
		$(srcdir)/as.texinfo | \
	texi2roff -ms >as.ms 

# roff output (-mm)
as.mm: $(srcdir)/as.texinfo asconfig.texi
	sed -e '/\\input texinfo/d' \
		-e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
		-e 's/{.*,,/{/' \
		-e '/@noindent/d' \
		$(srcdir)/as.texinfo | \
	texi2roff -mm | \
	sed -e 's/---/\\(em/g' \
	>as.mm 

# roff output (-me)
as.me: $(srcdir)/as.texinfo asconfig.texi
	sed -e '/\\input texinfo/d' \
		-e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
		-e 's/{.*,,/{/' \
		$(srcdir)/as.texinfo | \
	texi2roff -me >as.me 

clean mostlyclean: clean-dvi clean-info
	rm -f asconfig.texi

distclean realclean:
	rm -f Makefile config.status asconfig.texi \
		as.?? as.??s as.aux as.log as.toc \
		gasp.?? gasp.??s gasp.aux gasp.log gasp.toc

clean-dvi:
	rm -f as.?? as.??? gasp.?? gasp.???

clean-info:
	rm -f as.info* gasp.info*

force:

Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
	(cd .. ; $(SHELL) ./config.status)