138889Sjdp## Process this file with automake to generate Makefile.in
238889Sjdp
3130561SobrienAUTOMAKE_OPTIONS = 1.8 cygnus
438889Sjdp
538889Sjdp# What version of the manual you want; "all" includes everything
638889SjdpCONFIG=all
738889Sjdp
889857Sobrien# Options to extract the man page from as.texinfo
989857SobrienMANCONF = -Dman
1089857Sobrien
11218822SdimTEXI2POD = perl $(BASEDIR)/etc/texi2pod.pl $(AM_MAKEINFOFLAGS)
1289857Sobrien
1389857SobrienPOD2MAN = pod2man --center="GNU Development Tools" \
1489857Sobrien	--release="binutils-$(VERSION)" --section=1
1589857Sobrien
1638889Sjdpman_MANS = as.1
1738889Sjdp
18104834Sobrieninfo_TEXINFOS = as.texinfo 
19218822Sdimas_TEXINFOS = asconfig.texi $(CPU_DOCS)
2038889Sjdp
21218822SdimAM_MAKEINFOFLAGS = -I "$(srcdir)" -I "$(top_srcdir)/../libiberty" \
22218822Sdim		   -I ../../bfd/doc
23218822SdimTEXI2DVI = texi2dvi -I "$(srcdir)" -I "$(top_srcdir)/../libiberty" \
24218822Sdim		   -I ../../bfd/doc
25218822Sdim
2638889Sjdpasconfig.texi: $(CONFIG).texi
2738889Sjdp	rm -f asconfig.texi
28218822Sdim	cp $(srcdir)/$(CONFIG).texi ./asconfig.texi
29218822Sdim	chmod u+w ./asconfig.texi
3038889Sjdp
3138889SjdpCPU_DOCS = \
3291041Sobrien	c-alpha.texi \
3377298Sobrien	c-arc.texi \
3438889Sjdp	c-arm.texi \
35218822Sdim	c-avr.texi \
36218822Sdim	c-bfin.texi \
37218822Sdim	c-cr16.texi \
3838889Sjdp	c-d10v.texi \
3991041Sobrien	c-cris.texi \
4038889Sjdp	c-h8300.texi \
4138889Sjdp	c-hppa.texi \
4260484Sobrien	c-i370.texi \
4338889Sjdp	c-i386.texi \
4477298Sobrien	c-i860.texi \
4538889Sjdp	c-i960.texi \
46130561Sobrien	c-ip2k.texi \
47218822Sdim	c-m32c.texi \
4860484Sobrien	c-m32r.texi \
4977298Sobrien	c-m68hc11.texi \
5038889Sjdp	c-m68k.texi \
5138889Sjdp	c-mips.texi \
5289857Sobrien	c-mmix.texi \
53218822Sdim	c-mt.texi \
54130561Sobrien	c-msp430.texi \
5538889Sjdp	c-ns32k.texi \
5689857Sobrien	c-pdp11.texi \
5760484Sobrien	c-pj.texi \
5889857Sobrien	c-ppc.texi \
5938889Sjdp	c-sh.texi \
6091041Sobrien	c-sh64.texi \
6138889Sjdp	c-sparc.texi \
6277298Sobrien        c-tic54x.texi \
6338889Sjdp	c-vax.texi \
6438889Sjdp	c-v850.texi \
65130561Sobrien	c-xtensa.texi \
66218822Sdim	c-z80.texi \
6738889Sjdp	c-z8k.texi
6838889Sjdp
6991041Sobrien# We want install to imply install-info as per GNU standards, despite the
7091041Sobrien# cygnus option.
71130561Sobrieninstall-data-local: install-info
7291041Sobrien
73218822Sdimhtml__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
74218822Sdim
75218822Sdiminstall-html: install-html-am
76218822Sdim
77218822Sdiminstall-html-am: $(HTMLS)
78218822Sdim	@$(NORMAL_INSTALL)
79218822Sdim	test -z "$(htmldir)" || $(mkdir_p) "$(DESTDIR)$(htmldir)"
80218822Sdim	@list='$(HTMLS)'; for p in $$list; do \
81218822Sdim	  if test -f "$$p" || test -d "$$p"; then d=""; else d="$(srcdir)/"; fi; \
82218822Sdim	  f=$(html__strip_dir) \
83218822Sdim	  if test -d "$$d$$p"; then \
84218822Sdim	    echo " $(mkdir_p) '$(DESTDIR)$(htmldir)/$$f'"; \
85218822Sdim	    $(mkdir_p) "$(DESTDIR)$(htmldir)/$$f" || exit 1; \
86218822Sdim	    echo " $(INSTALL_DATA) '$$d$$p'/* '$(DESTDIR)$(htmldir)/$$f'"; \
87218822Sdim	    $(INSTALL_DATA) "$$d$$p"/* "$(DESTDIR)$(htmldir)/$$f"; \
88218822Sdim	  else \
89218822Sdim	    echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(htmldir)/$$f'"; \
90218822Sdim	    $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(htmldir)/$$f"; \
91218822Sdim	  fi; \
92218822Sdim	done
93218822Sdim
9438889Sjdp# This one isn't ready for prime time yet.  Not even a little bit.
9538889Sjdp
96130561Sobriennoinst_TEXINFOS = internals.texi
9738889Sjdp
98218822SdimMAINTAINERCLEANFILES = asconfig.texi
9960484Sobrien
100130561SobrienBASEDIR = $(srcdir)/../..
101130561SobrienBFDDIR = $(BASEDIR)/bfd
102130561Sobrien
103130561SobrienCONFIG_STATUS_DEPENDENCIES = $(BFDDIR)/configure.in
104130561Sobrien
10589857Sobrien# Maintenance
10689857Sobrien
10789857Sobrien# We need it for the taz target in ../../Makefile.in.
108218822Sdiminfo-local: $(MANS)
10989857Sobrien
11089857Sobrien# Build the man page from the texinfo file
11189857Sobrien# The sed command removes the no-adjust Nroff command so that
11289857Sobrien# the man output looks standard.
113218822Sdimas.1: $(srcdir)/as.texinfo asconfig.texi $(CPU_DOCS)
11489857Sobrien	touch $@
11589857Sobrien	-$(TEXI2POD) $(MANCONF) < $(srcdir)/as.texinfo > as.pod
11689857Sobrien	-($(POD2MAN) as.pod | \
11789857Sobrien	        sed -e '/^.if n .na/d' > $@.T$$$$ && \
11889857Sobrien	        mv -f $@.T$$$$ $@) || \
11989857Sobrien	        (rm -f $@.T$$$$ && exit 1)
12089857Sobrien	rm -f as.pod
121218822Sdim
122218822SdimMAINTAINERCLEANFILES += as.info
123218822Sdim
124218822Sdim# Automake 1.9 will only build info files in the objdir if they are
125218822Sdim# mentioned in DISTCLEANFILES.  It doesn't have to be unconditional,
126218822Sdim# though, so we use a bogus condition.
127218822Sdimif GENINSRC_NEVER
128218822SdimDISTCLEANFILES = as.info
129218822Sdimendif
130