1 # Makefile for GNU Assembler documentation
2 # Copyright (C) 1987-1993 Free Software Foundation, Inc.
4 #This file is part of GNU GAS.
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)
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.
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.
20 # The targets for external use include:
21 # all, doc, proto, install, uninstall, includes, TAGS,
22 # clean, cleanconfig, realclean, stage1, stage2, stage3, stage4.
24 # Variables that exist for you to override.
25 # See below for how to change them for certain systems.
31 program_transform_name =
32 exec_prefix = $(prefix)
33 bindir = $(exec_prefix)/bin
34 libdir = $(exec_prefix)/lib
36 datadir = $(prefix)/lib
37 mandir = $(prefix)/man
38 man1dir = $(mandir)/man1
39 man2dir = $(mandir)/man2
40 man3dir = $(mandir)/man3
41 man4dir = $(mandir)/man4
42 man5dir = $(mandir)/man5
43 man6dir = $(mandir)/man6
44 man7dir = $(mandir)/man7
45 man8dir = $(mandir)/man8
46 man9dir = $(mandir)/man9
47 infodir = $(prefix)/info
48 includedir = $(prefix)/include
49 docdir = $(datadir)/doc
54 INSTALL_PROGRAM = $(INSTALL)
55 INSTALL_DATA = $(INSTALL)
61 TEXI2DVI = TEXINPUTS=$$TEXINPUTS:$(TEXIDIR) texi2dvi
64 # What version of the manual you want; "all" includes everything
67 # Where to find texinfo.tex to format docn with TeX
68 TEXIDIR = $(srcdir)/../../texinfo
70 #### host, target, and site specific Makefile frags come in here.
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
78 $(INSTALL_DATA) $(srcdir)/as.1 $(man1dir)/`t='$(program_transform_name)'; echo as | sed -e "" $$t`.1
83 asdoc-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
88 as.info: as.texinfo asdoc-config.texi
89 $(MAKEINFO) -o as.info as.texinfo
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
95 for i in as.info* ; do \
96 $(INSTALL_DATA) $$i $(infodir)/$$i ; \
101 as.dvi: as.texinfo asdoc-config.texi
102 $(TEXI2DVI) as.texinfo
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).
108 # THESE ARE PROBABLY BROKEN until texi2roff extended for Texinfo conditionals
109 as.ms: as.texinfo asdoc-config.texi
110 sed -e '/\\input texinfo/d' \
111 -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
117 as.mm: as.texinfo asdoc-config.texi
118 sed -e '/\\input texinfo/d' \
119 -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
124 sed -e 's/---/\\(em/g' \
128 as.me: as.texinfo asdoc-config.texi
129 sed -e '/\\input texinfo/d' \
130 -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
135 clean: clean-dvi clean-info
145 Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
146 $(SHELL) ./config.status