Commit | Line | Data |
---|---|---|
252b5132 RH |
1 | ## Process this file with automake to generate Makefile.in |
2 | ||
c6581168 | 3 | AUTOMAKE_OPTIONS = 1.8 cygnus |
252b5132 RH |
4 | |
5 | # What version of the manual you want; "all" includes everything | |
6 | CONFIG=all | |
7 | ||
0285c67d NC |
8 | # Options to extract the man page from as.texinfo |
9 | MANCONF = -Dman | |
10 | ||
38fc1cb1 | 11 | TEXI2POD = perl $(BASEDIR)/etc/texi2pod.pl $(AM_MAKEINFOFLAGS) |
0285c67d | 12 | |
a4fb0134 SC |
13 | POD2MAN = pod2man --center="GNU Development Tools" \ |
14 | --release="binutils-$(VERSION)" --section=1 | |
0285c67d | 15 | |
252b5132 RH |
16 | man_MANS = as.1 |
17 | ||
3f965e60 | 18 | info_TEXINFOS = as.texinfo |
252b5132 | 19 | |
38fc1cb1 DJ |
20 | AM_MAKEINFOFLAGS = -I "$(srcdir)" -I "$(top_srcdir)/../libiberty" |
21 | ||
252b5132 RH |
22 | asconfig.texi: $(CONFIG).texi |
23 | rm -f asconfig.texi | |
513ba3ab JB |
24 | cp $(srcdir)/$(CONFIG).texi ./asconfig.texi |
25 | chmod u+w ./asconfig.texi | |
252b5132 RH |
26 | |
27 | CPU_DOCS = \ | |
625e1353 | 28 | c-alpha.texi \ |
0d2bcfaf | 29 | c-arc.texi \ |
252b5132 | 30 | c-arm.texi \ |
07c1b327 | 31 | c-bfin.texi \ |
252b5132 | 32 | c-d10v.texi \ |
328eb32e | 33 | c-cris.texi \ |
252b5132 | 34 | c-h8300.texi \ |
252b5132 | 35 | c-hppa.texi \ |
5b93d8bb | 36 | c-i370.texi \ |
252b5132 | 37 | c-i386.texi \ |
e3308d0d | 38 | c-i860.texi \ |
252b5132 | 39 | c-i960.texi \ |
a40cbfa3 | 40 | c-ip2k.texi \ |
49f58d10 | 41 | c-m32c.texi \ |
ded0aeb7 | 42 | c-m32r.texi \ |
60bcf0fa | 43 | c-m68hc11.texi \ |
252b5132 RH |
44 | c-m68k.texi \ |
45 | c-mips.texi \ | |
3c3bdf30 | 46 | c-mmix.texi \ |
4970f871 | 47 | c-mt.texi \ |
2469cfa2 | 48 | c-msp430.texi \ |
252b5132 | 49 | c-ns32k.texi \ |
e135f41b | 50 | c-pdp11.texi \ |
041dd5a9 | 51 | c-pj.texi \ |
418c1742 | 52 | c-ppc.texi \ |
252b5132 | 53 | c-sh.texi \ |
324bfcf3 | 54 | c-sh64.texi \ |
252b5132 | 55 | c-sparc.texi \ |
39bec121 | 56 | c-tic54x.texi \ |
252b5132 RH |
57 | c-vax.texi \ |
58 | c-v850.texi \ | |
e0001a05 | 59 | c-xtensa.texi \ |
3c9b82ba | 60 | c-z80.texi \ |
252b5132 RH |
61 | c-z8k.texi |
62 | ||
b8c449bf | 63 | gasver.texi: $(srcdir)/../../bfd/configure |
252b5132 | 64 | rm -f $@ |
970c3dbc DJ |
65 | eval `grep '^ *VERSION=' $(srcdir)/../../bfd/configure`; \ |
66 | echo "@set VERSION $$VERSION" > $@ | |
252b5132 | 67 | |
f7d9e5c3 | 68 | $(srcdir)/as.info as.dvi as.html: $(srcdir)/as.texinfo asconfig.texi gasver.texi $(CPU_DOCS) |
252b5132 | 69 | |
7562a296 HPN |
70 | # We want install to imply install-info as per GNU standards, despite the |
71 | # cygnus option. | |
c6581168 | 72 | install-data-local: install-info |
7562a296 | 73 | |
108a6f8e CD |
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 | ||
252b5132 RH |
95 | # This one isn't ready for prime time yet. Not even a little bit. |
96 | ||
fea17916 | 97 | noinst_TEXINFOS = internals.texi |
252b5132 | 98 | |
b8c449bf | 99 | MAINTAINERCLEANFILES = asconfig.texi gasver.texi |
0285c67d | 100 | |
2251dd89 MR |
101 | BASEDIR = $(srcdir)/../.. |
102 | BFDDIR = $(BASEDIR)/bfd | |
103 | ||
104 | CONFIG_STATUS_DEPENDENCIES = $(BFDDIR)/configure.in | |
105 | ||
0285c67d NC |
106 | # Maintenance |
107 | ||
c45021f2 | 108 | # We need it for the taz target in ../../Makefile.in. |
4d1cd5c7 | 109 | info-local: $(MANS) |
c45021f2 | 110 | |
0285c67d NC |
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. | |
55ac548d | 114 | as.1: $(srcdir)/as.texinfo asconfig.texi gasver.texi $(CPU_DOCS) |
c45021f2 | 115 | touch $@ |
0285c67d NC |
116 | -$(TEXI2POD) $(MANCONF) < $(srcdir)/as.texinfo > as.pod |
117 | -($(POD2MAN) as.pod | \ | |
c45021f2 NC |
118 | sed -e '/^.if n .na/d' > $@.T$$$$ && \ |
119 | mv -f $@.T$$$$ $@) || \ | |
120 | (rm -f $@.T$$$$ && exit 1) | |
121 | rm -f as.pod |