blob: 5cd20f8668f49d563ca54a3730e7b6b49c2d3ae5 (
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
|
## Process this file with automake to generate Makefile.in
AUTOMAKE_OPTIONS = cygnus
# What version of the manual you want; "all" includes everything
CONFIG=all
# Options to extract the man page from as.texinfo
MANCONF = -Dman
TEXI2POD = perl $(top_srcdir)/../etc/texi2pod.pl
POD2MAN = pod2man --center="GNU" --release="binutils-$(VERSION)" --section=1
man_MANS = as.1
info_TEXINFOS = as.texinfo gasp.texi
asconfig.texi: $(CONFIG).texi
rm -f asconfig.texi
ln -s $(srcdir)/$(CONFIG).texi ./asconfig.texi >/dev/null 2>&1 \
|| ln $(srcdir)/$(CONFIG).texi ./asconfig.texi >/dev/null 2>&1 \
|| cp $(srcdir)/$(CONFIG).texi ./asconfig.texi
CPU_DOCS = \
c-a29k.texi \
c-arc.texi \
c-arm.texi \
c-d10v.texi \
c-h8300.texi \
c-h8500.texi \
c-hppa.texi \
c-i370.texi \
c-i386.texi \
c-i860.texi \
c-i960.texi \
c-m32r.texi \
c-m68hc11.texi \
c-m68k.texi \
c-mips.texi \
c-ns32k.texi \
c-pdp11.texi \
c-pj.texi \
c-sh.texi \
c-sparc.texi \
c-tic54x.texi \
c-vax.texi \
c-v850.texi \
c-z8k.texi
gasver.texi: Makefile
rm -f $@
echo '@set VERSION $(VERSION)' > $@
as.info: $(srcdir)/as.texinfo asconfig.texi gasver.texi $(CPU_DOCS)
as.dvi: $(srcdir)/as.texinfo asconfig.texi gasver.texi $(CPU_DOCS)
# This one isn't ready for prime time yet. Not even a little bit.
noinst_TEXINFOS = internals.texi
DISTCLEANFILES = asconfig.texi
MAINTAINERCLEANFILES = gasver.texi
# Maintenance
# Build the man page from the texinfo file
# The sed command removes the no-adjust Nroff command so that
# the man output looks standard.
$(srcdir)/as.1: $(srcdir)/as.texinfo
touch $(srcdir)/as.1
-$(TEXI2POD) $(MANCONF) < $(srcdir)/as.texinfo > as.pod
-($(POD2MAN) as.pod | \
sed -e '/^.if n .na/d' > $(srcdir)/as.1.T$$$$ && \
mv -f $(srcdir)/as.1.T$$$$ $(srcdir)/as.1) || \
(rm -f $(srcdir)/as.1.T$$$$ && exit 1)
|