1# $MirOS: src/gnu/usr.bin/binutils/gas/doc/Makefile.am,v 1.6 2009/02/24 21:47:25 tg Exp $ 2# 3## Process this file with automake to generate Makefile.in 4 5AUTOMAKE_OPTIONS = 1.8 cygnus 6 7AM_MAKEINFOFLAGS = --no-split 8 9# What version of the manual you want; "all" includes everything 10CONFIG=all 11 12# Options to extract the man page from as.texinfo 13MANCONF = -Dman 14 15TEXI2POD = perl $(top_srcdir)/../etc/texi2pod.pl 16 17POD2MAN = pod2man --center="GNU Development Tools" \ 18 --release="binutils-$(VERSION)" --section=1 19 20man_MANS = as.1 21 22info_TEXINFOS = as.texinfo 23 24asconfig.texi: $(CONFIG).texi 25 rm -f asconfig.texi 26 ln -s $(srcdir)/$(CONFIG).texi ./asconfig.texi >/dev/null 2>&1 \ 27 || ln $(srcdir)/$(CONFIG).texi ./asconfig.texi >/dev/null 2>&1 \ 28 || cp $(srcdir)/$(CONFIG).texi ./asconfig.texi 29 30CPU_DOCS = \ 31 c-a29k.texi \ 32 c-alpha.texi \ 33 c-arc.texi \ 34 c-arm.texi \ 35 c-d10v.texi \ 36 c-cris.texi \ 37 c-h8300.texi \ 38 c-h8500.texi \ 39 c-hppa.texi \ 40 c-i370.texi \ 41 c-i386.texi \ 42 c-i860.texi \ 43 c-i960.texi \ 44 c-ip2k.texi \ 45 c-m32r.texi \ 46 c-m68hc11.texi \ 47 c-m68k.texi \ 48 c-m88k.texi \ 49 c-mips.texi \ 50 c-mmix.texi \ 51 c-msp430.texi \ 52 c-ns32k.texi \ 53 c-pdp11.texi \ 54 c-pj.texi \ 55 c-ppc.texi \ 56 c-sh.texi \ 57 c-sh64.texi \ 58 c-sparc.texi \ 59 c-tic54x.texi \ 60 c-vax.texi \ 61 c-v850.texi \ 62 c-xtensa.texi \ 63 c-z8k.texi 64 65gasver.texi: $(srcdir)/../../bfd/configure 66 rm -f $@ 67 eval `grep '^ *VERSION=' $(srcdir)/../../bfd/configure`; \ 68 echo "@set VERSION $$VERSION" > $@ 69 70# We want install to imply install-info as per GNU standards, despite the 71# cygnus option. 72install-data-local: install-info 73 74# This one isn't ready for prime time yet. Not even a little bit. 75 76noinst_TEXINFOS = internals.texi 77 78DISTCLEANFILES = asconfig.texi as.info as.info-* 79 80MAINTAINERCLEANFILES = asconfig.texi gasver.texi 81 82BASEDIR = $(srcdir)/../.. 83BFDDIR = $(BASEDIR)/bfd 84 85CONFIG_STATUS_DEPENDENCIES = $(BFDDIR)/configure.in 86 87# Maintenance 88 89# We need it for the taz target in ../../Makefile.in. 90info-local: $(MANS) 91 92# Build the man page from the texinfo file 93# The sed command removes the no-adjust Nroff command so that 94# the man output looks standard. 95as.1: $(srcdir)/as.texinfo asconfig.texi gasver.texi $(CPU_DOCS) 96 touch $@ 97 -$(TEXI2POD) $(MANCONF) $(srcdir)/as.texinfo > as.pod 98 -($(POD2MAN) as.pod | \ 99 sed -e '/^.if n .na/d' > $@.T$$$$ && \ 100 mv -f $@.T$$$$ $@) || \ 101 (rm -f $@.T$$$$ && exit 1) 102 rm -f as.pod 103