bfd/
[deliverable/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 TEXI2DVI = texi2dvi -I "$(srcdir)" -I "$(top_srcdir)/../libiberty"
22
23 asconfig.texi: $(CONFIG).texi
24 rm -f asconfig.texi
25 cp $(srcdir)/$(CONFIG).texi ./asconfig.texi
26 chmod u+w ./asconfig.texi
27
28 CPU_DOCS = \
29 c-alpha.texi \
30 c-arc.texi \
31 c-arm.texi \
32 c-avr.texi \
33 c-bfin.texi \
34 c-d10v.texi \
35 c-cris.texi \
36 c-h8300.texi \
37 c-hppa.texi \
38 c-i370.texi \
39 c-i386.texi \
40 c-i860.texi \
41 c-i960.texi \
42 c-ip2k.texi \
43 c-m32c.texi \
44 c-m32r.texi \
45 c-m68hc11.texi \
46 c-m68k.texi \
47 c-mips.texi \
48 c-mmix.texi \
49 c-mt.texi \
50 c-msp430.texi \
51 c-ns32k.texi \
52 c-pdp11.texi \
53 c-pj.texi \
54 c-ppc.texi \
55 c-sh.texi \
56 c-sh64.texi \
57 c-sparc.texi \
58 c-tic54x.texi \
59 c-vax.texi \
60 c-v850.texi \
61 c-xtensa.texi \
62 c-z80.texi \
63 c-z8k.texi
64
65 gasver.texi: $(srcdir)/../../bfd/configure
66 rm -f $@
67 eval `grep '^ *VERSION=' $(srcdir)/../../bfd/configure`; \
68 echo "@set VERSION $$VERSION" > $@
69
70 as.info as.dvi as.html: $(srcdir)/as.texinfo asconfig.texi gasver.texi $(CPU_DOCS)
71
72 # We want install to imply install-info as per GNU standards, despite the
73 # cygnus option.
74 install-data-local: install-info
75
76 html__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
77
78 install-html: install-html-am
79
80 install-html-am: $(HTMLS)
81 @$(NORMAL_INSTALL)
82 test -z "$(htmldir)" || $(mkdir_p) "$(DESTDIR)$(htmldir)"
83 @list='$(HTMLS)'; for p in $$list; do \
84 if test -f "$$p" || test -d "$$p"; then d=""; else d="$(srcdir)/"; fi; \
85 f=$(html__strip_dir) \
86 if test -d "$$d$$p"; then \
87 echo " $(mkdir_p) '$(DESTDIR)$(htmldir)/$$f'"; \
88 $(mkdir_p) "$(DESTDIR)$(htmldir)/$$f" || exit 1; \
89 echo " $(INSTALL_DATA) '$$d$$p'/* '$(DESTDIR)$(htmldir)/$$f'"; \
90 $(INSTALL_DATA) "$$d$$p"/* "$(DESTDIR)$(htmldir)/$$f"; \
91 else \
92 echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(htmldir)/$$f'"; \
93 $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(htmldir)/$$f"; \
94 fi; \
95 done
96
97 # This one isn't ready for prime time yet. Not even a little bit.
98
99 noinst_TEXINFOS = internals.texi
100
101 MAINTAINERCLEANFILES = asconfig.texi gasver.texi
102
103 BASEDIR = $(srcdir)/../..
104 BFDDIR = $(BASEDIR)/bfd
105
106 CONFIG_STATUS_DEPENDENCIES = $(BFDDIR)/configure.in
107
108 # Maintenance
109
110 # We need it for the taz target in ../../Makefile.in.
111 info-local: $(MANS)
112
113 # Build the man page from the texinfo file
114 # The sed command removes the no-adjust Nroff command so that
115 # the man output looks standard.
116 as.1: $(srcdir)/as.texinfo asconfig.texi gasver.texi $(CPU_DOCS)
117 touch $@
118 -$(TEXI2POD) $(MANCONF) < $(srcdir)/as.texinfo > as.pod
119 -($(POD2MAN) as.pod | \
120 sed -e '/^.if n .na/d' > $@.T$$$$ && \
121 mv -f $@.T$$$$ $@) || \
122 (rm -f $@.T$$$$ && exit 1)
123 rm -f as.pod
124
125 MAINTAINERCLEANFILES += as.info
126
127 # Automake 1.9 will only build info files in the objdir if they are
128 # mentioned in DISTCLEANFILES. It doesn't have to be unconditional,
129 # though, so we use a bogus condition.
130 if GENINSRC_NEVER
131 DISTCLEANFILES = as.info
132 endif
This page took 0.043691 seconds and 4 git commands to generate.