* acinclude.m4 (AM_INSTALL_LIBBFD): Do not rely on "test -o".
[binutils.git] / gas / doc / Makefile.am
blob63aa1790d849b60cefc9bd4551fd7f032a68537a
1 ## Process this file with automake to generate Makefile.in
3 AUTOMAKE_OPTIONS = cygnus
5 # What version of the manual you want; "all" includes everything
6 CONFIG=all
8 # Options to extract the man page from as.texinfo
9 MANCONF = -Dman
11 TEXI2POD = perl $(top_srcdir)/../etc/texi2pod.pl
13 POD2MAN = pod2man --center="GNU Development Tools" \
14         --release="binutils-$(VERSION)" --section=1
16 man_MANS = as.1
18 info_TEXINFOS = as.texinfo 
20 asconfig.texi: $(CONFIG).texi
21         rm -f asconfig.texi
22         ln -s $(srcdir)/$(CONFIG).texi ./asconfig.texi >/dev/null 2>&1 \
23           || ln $(srcdir)/$(CONFIG).texi ./asconfig.texi >/dev/null 2>&1 \
24           || cp $(srcdir)/$(CONFIG).texi ./asconfig.texi
26 CPU_DOCS = \
27         c-a29k.texi \
28         c-alpha.texi \
29         c-arc.texi \
30         c-arm.texi \
31         c-d10v.texi \
32         c-cris.texi \
33         c-h8300.texi \
34         c-h8500.texi \
35         c-hppa.texi \
36         c-i370.texi \
37         c-i386.texi \
38         c-i860.texi \
39         c-i960.texi \
40         c-ip2k.texi \
41         c-m32r.texi \
42         c-m68hc11.texi \
43         c-m68k.texi \
44         c-m88k.texi \
45         c-mips.texi \
46         c-mmix.texi \
47         c-ns32k.texi \
48         c-pdp11.texi \
49         c-pj.texi \
50         c-ppc.texi \
51         c-sh.texi \
52         c-sh64.texi \
53         c-sparc.texi \
54         c-tic54x.texi \
55         c-vax.texi \
56         c-v850.texi \
57         c-z8k.texi
59 gasver.texi: Makefile
60         rm -f $@
61         echo '@set VERSION $(VERSION)' > $@
63 as.info: $(srcdir)/as.texinfo asconfig.texi gasver.texi $(CPU_DOCS)
64 as.dvi: $(srcdir)/as.texinfo asconfig.texi gasver.texi $(CPU_DOCS)
66 # We want install to imply install-info as per GNU standards, despite the
67 # cygnus option.
68 install: install-info
70 # This one isn't ready for prime time yet.  Not even a little bit.
72 noinst_TEXINFOS = internals.texi
74 DISTCLEANFILES = asconfig.texi
76 MAINTAINERCLEANFILES = gasver.texi
78 # Maintenance
80 # We need it for the taz target in ../../Makefile.in.
81 info: $(MANS)
83 # Build the man page from the texinfo file
84 # The sed command removes the no-adjust Nroff command so that
85 # the man output looks standard.
86 as.1: $(srcdir)/as.texinfo
87         touch $@
88         -$(TEXI2POD) $(MANCONF) < $(srcdir)/as.texinfo > as.pod
89         -($(POD2MAN) as.pod | \
90                 sed -e '/^.if n .na/d' > $@.T$$$$ && \
91                 mv -f $@.T$$$$ $@) || \
92                 (rm -f $@.T$$$$ && exit 1)
93         rm -f as.pod