]> Git Repo - binutils.git/blame - gas/doc/Makefile.in
* read.c (s_lcomm): Align lcomm data.
[binutils.git] / gas / doc / Makefile.in
CommitLineData
79a54a5b 1# Makefile for GNU Assembler documentation
730ad1a7 2# Copyright (C) 1987-1993 Free Software Foundation, Inc.
79a54a5b
RP
3
4#This file is part of GNU GAS.
5
6#GNU GAS is free software; you can redistribute it and/or modify
7#it under the terms of the GNU General Public License as published by
8#the Free Software Foundation; either version 2, or (at your option)
9#any later version.
10
11#GNU GAS is distributed in the hope that it will be useful,
12#but WITHOUT ANY WARRANTY; without even the implied warranty of
13#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14#GNU General Public License for more details.
15
16#You should have received a copy of the GNU General Public License
17#along with GNU GAS; see the file COPYING. If not, write to
18#the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
19
20# The targets for external use include:
21# all, doc, proto, install, uninstall, includes, TAGS,
22# clean, cleanconfig, realclean, stage1, stage2, stage3, stage4.
23
24# Variables that exist for you to override.
25# See below for how to change them for certain systems.
26
27srcdir = .
28
29prefix = /usr/local
30
9da59956 31program_transform_name =
03261889
ILT
32exec_prefix = $(prefix)
33bindir = $(exec_prefix)/bin
34libdir = $(exec_prefix)/lib
35
79a54a5b 36datadir = $(prefix)/lib
03261889 37mandir = $(prefix)/man
79a54a5b
RP
38man1dir = $(mandir)/man1
39man2dir = $(mandir)/man2
40man3dir = $(mandir)/man3
41man4dir = $(mandir)/man4
42man5dir = $(mandir)/man5
43man6dir = $(mandir)/man6
44man7dir = $(mandir)/man7
45man8dir = $(mandir)/man8
46man9dir = $(mandir)/man9
03261889 47infodir = $(prefix)/info
79a54a5b
RP
48includedir = $(prefix)/include
49docdir = $(datadir)/doc
50
51SHELL = /bin/sh
52
53INSTALL = install -c
54INSTALL_PROGRAM = $(INSTALL)
55INSTALL_DATA = $(INSTALL)
56
57AR = ar
58AR_FLAGS = qv
59BISON = bison
60MAKEINFO = makeinfo
730ad1a7 61TEXI2DVI = TEXINPUTS=$$TEXINPUTS:$(TEXIDIR) texi2dvi
79a54a5b
RP
62RANLIB = ranlib
63
730ad1a7 64# What version of the manual you want; "all" includes everything
79a54a5b
RP
65CONFIG=all
66
79a54a5b 67# Where to find texinfo.tex to format docn with TeX
9da59956 68TEXIDIR = $(srcdir)/../../texinfo
79a54a5b
RP
69
70#### host, target, and site specific Makefile frags come in here.
71##
72
73all:
79a54a5b 74install:
03261889
ILT
75 -parent=`echo $(man1dir)|sed -e 's@/[^/]*$$@@'`; \
76 if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
77 -if [ -d $(man1dir) ] ; then true ; else mkdir $(man1dir) ; fi
9da59956 78 $(INSTALL_DATA) $(srcdir)/as.1 $(man1dir)/`t='$(program_transform_name)'; echo as | sed -e "" $$t`.1
79a54a5b
RP
79
80info: as.info
9da59956 81dvi: as.dvi
79a54a5b 82
730ad1a7
RP
83asdoc-config.texi: $(CONFIG).texi
84 ln -s $(srcdir)/$(CONFIG).texi ./asdoc-config.texi || \
85 ln $(srcdir)/$(CONFIG).texi ./asdoc-config.texi || \
86 cp $(srcdir)/$(CONFIG).texi ./asdoc-config.texi
87
88as.info: as.texinfo asdoc-config.texi
89 $(MAKEINFO) -o as.info as.texinfo
79a54a5b
RP
90
91install-info: as.info
03261889
ILT
92 -parent=`echo $(infodir)|sed -e 's@/[^/]*$$@@'`; \
93 if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
94 -if [ -d $(infodir) ] ; then true ; else mkdir $(infodir) ; fi
79a54a5b
RP
95 for i in as.info* ; do \
96 $(INSTALL_DATA) $$i $(infodir)/$$i ; \
97 done
98
730ad1a7
RP
99dvi: as.dvi
100
8209a8c4
RP
101as.dvi: as.texinfo asdoc-config.texi
102 $(TEXI2DVI) as.texinfo
79a54a5b
RP
103
104# ROFF doc targets as.ms, as.mm, as.me
105# (we don't use a variable because we don't trust all makes to handle
106# a var in the target name right).
107# roff output (-ms)
8209a8c4
RP
108# THESE ARE PROBABLY BROKEN until texi2roff extended for Texinfo conditionals
109as.ms: as.texinfo asdoc-config.texi
79a54a5b
RP
110 sed -e '/\\input texinfo/d' \
111 -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
112 -e 's/{.*,,/{/' \
8209a8c4 113 as.texinfo | \
79a54a5b
RP
114 texi2roff -ms >as.ms
115
116# roff output (-mm)
8209a8c4 117as.mm: as.texinfo asdoc-config.texi
79a54a5b
RP
118 sed -e '/\\input texinfo/d' \
119 -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
120 -e 's/{.*,,/{/' \
121 -e '/@noindent/d' \
8209a8c4 122 as.texinfo | \
79a54a5b
RP
123 texi2roff -mm | \
124 sed -e 's/---/\\(em/g' \
125 >as.mm
126
127# roff output (-me)
8209a8c4 128as.me: as.texinfo asdoc-config.texi
79a54a5b
RP
129 sed -e '/\\input texinfo/d' \
130 -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
131 -e 's/{.*,,/{/' \
8209a8c4 132 as.texinfo | \
79a54a5b
RP
133 texi2roff -me >as.me
134
8209a8c4
RP
135clean: clean-dvi clean-info
136
137clean-dvi:
138 rm -f as.?? as.???
139
79a54a5b 140clean-info:
8209a8c4 141 rm -f as.info*
79a54a5b
RP
142
143force:
144
145Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
146 $(SHELL) ./config.status
This page took 0.155977 seconds and 4 git commands to generate.