]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gas/doc/Makefile.am
binutils/
[thirdparty/binutils-gdb.git] / gas / doc / Makefile.am
1 ## Process this file with automake to generate Makefile.in
2
3 AUTOMAKE_OPTIONS = 1.8 cygnus
4
5 # What version of the manual you want; "all" includes everything
6 CONFIG=all
7
8 # Options to extract the man page from as.texinfo
9 MANCONF = -Dman
10
11 TEXI2POD = perl $(BASEDIR)/etc/texi2pod.pl $(AM_MAKEINFOFLAGS)
12
13 POD2MAN = pod2man --center="GNU Development Tools" \
14 --release="binutils-$(VERSION)" --section=1
15
16 man_MANS = as.1
17
18 info_TEXINFOS = as.texinfo
19
20 AM_MAKEINFOFLAGS = -I "$(srcdir)" -I "$(top_srcdir)/../libiberty"
21
22 asconfig.texi: $(CONFIG).texi
23 rm -f asconfig.texi
24 cp $(srcdir)/$(CONFIG).texi ./asconfig.texi
25 chmod u+w ./asconfig.texi
26
27 CPU_DOCS = \
28 c-alpha.texi \
29 c-arc.texi \
30 c-arm.texi \
31 c-bfin.texi \
32 c-d10v.texi \
33 c-cris.texi \
34 c-h8300.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-m32c.texi \
42 c-m32r.texi \
43 c-m68hc11.texi \
44 c-m68k.texi \
45 c-mips.texi \
46 c-mmix.texi \
47 c-mt.texi \
48 c-msp430.texi \
49 c-ns32k.texi \
50 c-pdp11.texi \
51 c-pj.texi \
52 c-ppc.texi \
53 c-sh.texi \
54 c-sh64.texi \
55 c-sparc.texi \
56 c-tic54x.texi \
57 c-vax.texi \
58 c-v850.texi \
59 c-xtensa.texi \
60 c-z80.texi \
61 c-z8k.texi
62
63 gasver.texi: $(srcdir)/../../bfd/configure
64 rm -f $@
65 eval `grep '^ *VERSION=' $(srcdir)/../../bfd/configure`; \
66 echo "@set VERSION $$VERSION" > $@
67
68 $(srcdir)/as.info as.dvi as.html: $(srcdir)/as.texinfo asconfig.texi gasver.texi $(CPU_DOCS)
69
70 # We want install to imply install-info as per GNU standards, despite the
71 # cygnus option.
72 install-data-local: install-info
73
74 html__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
75
76 install-html: install-html-am
77
78 install-html-am: $(HTMLS)
79 @$(NORMAL_INSTALL)
80 test -z "$(htmldir)" || $(mkdir_p) "$(DESTDIR)$(htmldir)"
81 @list='$(HTMLS)'; for p in $$list; do \
82 if test -f "$$p" || test -d "$$p"; then d=""; else d="$(srcdir)/"; fi; \
83 f=$(html__strip_dir) \
84 if test -d "$$d$$p"; then \
85 echo " $(mkdir_p) '$(DESTDIR)$(htmldir)/$$f'"; \
86 $(mkdir_p) "$(DESTDIR)$(htmldir)/$$f" || exit 1; \
87 echo " $(INSTALL_DATA) '$$d$$p'/* '$(DESTDIR)$(htmldir)/$$f'"; \
88 $(INSTALL_DATA) "$$d$$p"/* "$(DESTDIR)$(htmldir)/$$f"; \
89 else \
90 echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(htmldir)/$$f'"; \
91 $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(htmldir)/$$f"; \
92 fi; \
93 done
94
95 # This one isn't ready for prime time yet. Not even a little bit.
96
97 noinst_TEXINFOS = internals.texi
98
99 MAINTAINERCLEANFILES = asconfig.texi gasver.texi
100
101 BASEDIR = $(srcdir)/../..
102 BFDDIR = $(BASEDIR)/bfd
103
104 CONFIG_STATUS_DEPENDENCIES = $(BFDDIR)/configure.in
105
106 # Maintenance
107
108 # We need it for the taz target in ../../Makefile.in.
109 info-local: $(MANS)
110
111 # Build the man page from the texinfo file
112 # The sed command removes the no-adjust Nroff command so that
113 # the man output looks standard.
114 as.1: $(srcdir)/as.texinfo asconfig.texi gasver.texi $(CPU_DOCS)
115 touch $@
116 -$(TEXI2POD) $(MANCONF) < $(srcdir)/as.texinfo > as.pod
117 -($(POD2MAN) as.pod | \
118 sed -e '/^.if n .na/d' > $@.T$$$$ && \
119 mv -f $@.T$$$$ $@) || \
120 (rm -f $@.T$$$$ && exit 1)
121 rm -f as.pod