2009-05-06 05:08:22 +00:00
|
|
|
## Process this file with automake to generate Makefile.in
|
|
|
|
|
|
|
|
AUTOMAKE_OPTIONS = 1.8 cygnus
|
|
|
|
|
|
|
|
# What version of the manual you want; "all" includes everything
|
|
|
|
CONFIG=all
|
|
|
|
|
|
|
|
# Options to extract the man page from as.texinfo
|
|
|
|
MANCONF = -Dman
|
|
|
|
|
2010-10-19 21:13:25 +00:00
|
|
|
TEXI2POD = perl $(BASEDIR)/etc/texi2pod.pl $(AM_MAKEINFOFLAGS)
|
2009-05-06 05:08:22 +00:00
|
|
|
|
|
|
|
POD2MAN = pod2man --center="GNU Development Tools" \
|
|
|
|
--release="binutils-$(VERSION)" --section=1
|
|
|
|
|
|
|
|
man_MANS = as.1
|
|
|
|
|
|
|
|
info_TEXINFOS = as.texinfo
|
2010-10-30 23:02:32 +00:00
|
|
|
as_TEXINFOS = asconfig.texi $(CPU_DOCS)
|
2009-05-06 05:08:22 +00:00
|
|
|
|
2010-10-30 23:02:32 +00:00
|
|
|
AM_MAKEINFOFLAGS = -I "$(srcdir)" -I "$(top_srcdir)/../libiberty" \
|
|
|
|
-I ../../bfd/doc
|
|
|
|
TEXI2DVI = texi2dvi -I "$(srcdir)" -I "$(top_srcdir)/../libiberty" \
|
|
|
|
-I ../../bfd/doc
|
2010-10-19 21:13:25 +00:00
|
|
|
|
2009-05-06 05:08:22 +00:00
|
|
|
asconfig.texi: $(CONFIG).texi
|
|
|
|
rm -f asconfig.texi
|
2010-10-19 21:13:25 +00:00
|
|
|
cp $(srcdir)/$(CONFIG).texi ./asconfig.texi
|
|
|
|
chmod u+w ./asconfig.texi
|
2009-05-06 05:08:22 +00:00
|
|
|
|
|
|
|
CPU_DOCS = \
|
|
|
|
c-alpha.texi \
|
|
|
|
c-arc.texi \
|
|
|
|
c-arm.texi \
|
2010-10-30 23:02:32 +00:00
|
|
|
c-avr.texi \
|
2010-10-19 21:13:25 +00:00
|
|
|
c-bfin.texi \
|
2010-10-30 23:02:32 +00:00
|
|
|
c-cr16.texi \
|
2009-05-06 05:08:22 +00:00
|
|
|
c-d10v.texi \
|
|
|
|
c-cris.texi \
|
|
|
|
c-h8300.texi \
|
|
|
|
c-hppa.texi \
|
|
|
|
c-i370.texi \
|
|
|
|
c-i386.texi \
|
|
|
|
c-i860.texi \
|
|
|
|
c-i960.texi \
|
|
|
|
c-ip2k.texi \
|
2010-10-19 21:13:25 +00:00
|
|
|
c-m32c.texi \
|
2009-05-06 05:08:22 +00:00
|
|
|
c-m32r.texi \
|
|
|
|
c-m68hc11.texi \
|
|
|
|
c-m68k.texi \
|
|
|
|
c-mips.texi \
|
|
|
|
c-mmix.texi \
|
2010-10-19 21:13:25 +00:00
|
|
|
c-mt.texi \
|
2009-05-06 05:08:22 +00:00
|
|
|
c-msp430.texi \
|
|
|
|
c-ns32k.texi \
|
|
|
|
c-pdp11.texi \
|
|
|
|
c-pj.texi \
|
|
|
|
c-ppc.texi \
|
|
|
|
c-sh.texi \
|
|
|
|
c-sh64.texi \
|
|
|
|
c-sparc.texi \
|
|
|
|
c-tic54x.texi \
|
|
|
|
c-vax.texi \
|
|
|
|
c-v850.texi \
|
|
|
|
c-xtensa.texi \
|
2010-10-19 21:13:25 +00:00
|
|
|
c-z80.texi \
|
2009-05-06 05:08:22 +00:00
|
|
|
c-z8k.texi
|
|
|
|
|
|
|
|
# We want install to imply install-info as per GNU standards, despite the
|
|
|
|
# cygnus option.
|
|
|
|
install-data-local: install-info
|
|
|
|
|
2010-10-19 21:13:25 +00:00
|
|
|
html__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
|
|
|
|
|
|
|
|
install-html: install-html-am
|
|
|
|
|
|
|
|
install-html-am: $(HTMLS)
|
|
|
|
@$(NORMAL_INSTALL)
|
|
|
|
test -z "$(htmldir)" || $(mkdir_p) "$(DESTDIR)$(htmldir)"
|
|
|
|
@list='$(HTMLS)'; for p in $$list; do \
|
|
|
|
if test -f "$$p" || test -d "$$p"; then d=""; else d="$(srcdir)/"; fi; \
|
|
|
|
f=$(html__strip_dir) \
|
|
|
|
if test -d "$$d$$p"; then \
|
|
|
|
echo " $(mkdir_p) '$(DESTDIR)$(htmldir)/$$f'"; \
|
|
|
|
$(mkdir_p) "$(DESTDIR)$(htmldir)/$$f" || exit 1; \
|
|
|
|
echo " $(INSTALL_DATA) '$$d$$p'/* '$(DESTDIR)$(htmldir)/$$f'"; \
|
|
|
|
$(INSTALL_DATA) "$$d$$p"/* "$(DESTDIR)$(htmldir)/$$f"; \
|
|
|
|
else \
|
|
|
|
echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(htmldir)/$$f'"; \
|
|
|
|
$(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(htmldir)/$$f"; \
|
|
|
|
fi; \
|
|
|
|
done
|
|
|
|
|
2009-05-06 05:08:22 +00:00
|
|
|
# This one isn't ready for prime time yet. Not even a little bit.
|
|
|
|
|
|
|
|
noinst_TEXINFOS = internals.texi
|
|
|
|
|
2010-10-30 23:02:32 +00:00
|
|
|
MAINTAINERCLEANFILES = asconfig.texi
|
2009-05-06 05:08:22 +00:00
|
|
|
|
|
|
|
BASEDIR = $(srcdir)/../..
|
|
|
|
BFDDIR = $(BASEDIR)/bfd
|
|
|
|
|
|
|
|
CONFIG_STATUS_DEPENDENCIES = $(BFDDIR)/configure.in
|
|
|
|
|
|
|
|
# Maintenance
|
|
|
|
|
|
|
|
# We need it for the taz target in ../../Makefile.in.
|
2010-10-19 21:13:25 +00:00
|
|
|
info-local: $(MANS)
|
2009-05-06 05:08:22 +00:00
|
|
|
|
|
|
|
# Build the man page from the texinfo file
|
|
|
|
# The sed command removes the no-adjust Nroff command so that
|
|
|
|
# the man output looks standard.
|
2010-10-30 23:02:32 +00:00
|
|
|
as.1: $(srcdir)/as.texinfo asconfig.texi $(CPU_DOCS)
|
2009-05-06 05:08:22 +00:00
|
|
|
touch $@
|
|
|
|
-$(TEXI2POD) $(MANCONF) < $(srcdir)/as.texinfo > as.pod
|
|
|
|
-($(POD2MAN) as.pod | \
|
|
|
|
sed -e '/^.if n .na/d' > $@.T$$$$ && \
|
|
|
|
mv -f $@.T$$$$ $@) || \
|
|
|
|
(rm -f $@.T$$$$ && exit 1)
|
|
|
|
rm -f as.pod
|
2010-10-30 23:02:32 +00:00
|
|
|
|
|
|
|
MAINTAINERCLEANFILES += as.info
|
|
|
|
|
|
|
|
# Automake 1.9 will only build info files in the objdir if they are
|
|
|
|
# mentioned in DISTCLEANFILES. It doesn't have to be unconditional,
|
|
|
|
# though, so we use a bogus condition.
|
|
|
|
if GENINSRC_NEVER
|
|
|
|
DISTCLEANFILES = as.info
|
|
|
|
endif
|