1992-02-21 09:05:26 +00:00
|
|
|
# Makefile for GNU Assembler documentation
|
1993-04-08 03:13:41 +00:00
|
|
|
# Copyright (C) 1987-1993 Free Software Foundation, Inc.
|
1992-02-21 09:05:26 +00:00
|
|
|
|
|
|
|
#This file is part of GNU GAS.
|
|
|
|
|
|
|
|
#GNU GAS is free software; you can redistribute it and/or modify
|
|
|
|
#it under the terms of the GNU General Public License as published by
|
|
|
|
#the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
#any later version.
|
|
|
|
|
|
|
|
#GNU GAS is distributed in the hope that it will be useful,
|
|
|
|
#but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
#GNU General Public License for more details.
|
|
|
|
|
|
|
|
#You should have received a copy of the GNU General Public License
|
|
|
|
#along with GNU GAS; see the file COPYING. If not, write to
|
|
|
|
#the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
|
|
|
|
# The targets for external use include:
|
|
|
|
# all, doc, proto, install, uninstall, includes, TAGS,
|
|
|
|
# clean, cleanconfig, realclean, stage1, stage2, stage3, stage4.
|
|
|
|
|
|
|
|
# Variables that exist for you to override.
|
|
|
|
# See below for how to change them for certain systems.
|
|
|
|
|
|
|
|
srcdir = .
|
|
|
|
|
|
|
|
prefix = /usr/local
|
|
|
|
|
1993-03-24 21:51:47 +00:00
|
|
|
program_transform_name =
|
1992-08-18 21:25:33 +00:00
|
|
|
exec_prefix = $(prefix)
|
|
|
|
bindir = $(exec_prefix)/bin
|
|
|
|
libdir = $(exec_prefix)/lib
|
|
|
|
|
1992-02-21 09:05:26 +00:00
|
|
|
datadir = $(prefix)/lib
|
1992-08-18 21:25:33 +00:00
|
|
|
mandir = $(prefix)/man
|
1992-02-21 09:05:26 +00:00
|
|
|
man1dir = $(mandir)/man1
|
|
|
|
man2dir = $(mandir)/man2
|
|
|
|
man3dir = $(mandir)/man3
|
|
|
|
man4dir = $(mandir)/man4
|
|
|
|
man5dir = $(mandir)/man5
|
|
|
|
man6dir = $(mandir)/man6
|
|
|
|
man7dir = $(mandir)/man7
|
|
|
|
man8dir = $(mandir)/man8
|
|
|
|
man9dir = $(mandir)/man9
|
1992-08-18 21:25:33 +00:00
|
|
|
infodir = $(prefix)/info
|
1992-02-21 09:05:26 +00:00
|
|
|
includedir = $(prefix)/include
|
|
|
|
docdir = $(datadir)/doc
|
|
|
|
|
|
|
|
SHELL = /bin/sh
|
|
|
|
|
|
|
|
INSTALL = install -c
|
|
|
|
INSTALL_PROGRAM = $(INSTALL)
|
|
|
|
INSTALL_DATA = $(INSTALL)
|
1994-04-05 18:17:39 +00:00
|
|
|
INSTALL_XFORM1 = $(INSTALL) -b $(program_transform_name) .1
|
1992-02-21 09:05:26 +00:00
|
|
|
|
|
|
|
AR = ar
|
|
|
|
AR_FLAGS = qv
|
|
|
|
BISON = bison
|
|
|
|
MAKEINFO = makeinfo
|
1994-04-05 18:17:39 +00:00
|
|
|
TEXI2DVI = TEXINPUTS=$(TEXIDIR):$$TEXINPUTS texi2dvi
|
1992-02-21 09:05:26 +00:00
|
|
|
RANLIB = ranlib
|
|
|
|
|
1993-04-08 03:13:41 +00:00
|
|
|
# What version of the manual you want; "all" includes everything
|
1992-02-21 09:05:26 +00:00
|
|
|
CONFIG=all
|
|
|
|
|
|
|
|
# Where to find texinfo.tex to format docn with TeX
|
1993-03-24 21:51:47 +00:00
|
|
|
TEXIDIR = $(srcdir)/../../texinfo
|
1992-02-21 09:05:26 +00:00
|
|
|
|
|
|
|
#### host, target, and site specific Makefile frags come in here.
|
|
|
|
##
|
|
|
|
|
|
|
|
all:
|
|
|
|
install:
|
1994-04-05 18:17:39 +00:00
|
|
|
$(INSTALL_XFORM1) $(srcdir)/as.1 $(man1dir)/as.1
|
1992-02-21 09:05:26 +00:00
|
|
|
|
1994-04-05 18:17:39 +00:00
|
|
|
info: as.info gasp.info
|
|
|
|
dvi: as.dvi gasp.dvi
|
1992-02-21 09:05:26 +00:00
|
|
|
|
1994-04-19 01:18:54 +00:00
|
|
|
asconfig.texi: $(CONFIG).texi
|
|
|
|
rm -f asconfig.texi
|
|
|
|
ln -s $(srcdir)/$(CONFIG).texi ./asconfig.texi || \
|
|
|
|
ln $(srcdir)/$(CONFIG).texi ./asconfig.texi || \
|
|
|
|
cp $(srcdir)/$(CONFIG).texi ./asconfig.texi
|
1993-04-08 03:13:41 +00:00
|
|
|
|
1994-04-19 01:18:54 +00:00
|
|
|
as.info: $(srcdir)/as.texinfo asconfig.texi
|
1994-04-05 18:17:39 +00:00
|
|
|
$(MAKEINFO) -I$(TEXIDIR) -o as.info $(srcdir)/as.texinfo
|
1992-02-21 09:05:26 +00:00
|
|
|
|
1994-04-05 18:17:39 +00:00
|
|
|
gasp.info: $(srcdir)/gasp.texi
|
|
|
|
$(MAKEINFO) -o gasp.info $(srcdir)/gasp.texi
|
|
|
|
|
|
|
|
install-info: install-info-as install-info-gasp
|
|
|
|
install-info-as: as.info
|
|
|
|
if [ -r as.info ]; then \
|
|
|
|
dir=. ; \
|
|
|
|
else \
|
|
|
|
dir=$(srcdir) ; \
|
|
|
|
fi ; \
|
1994-04-19 01:18:54 +00:00
|
|
|
for i in `cd $$dir ; echo as.info*` ; do \
|
|
|
|
$(INSTALL_DATA) $$dir/$$i $(infodir)/$$i ; \
|
1994-04-05 18:17:39 +00:00
|
|
|
done
|
|
|
|
install-info-gasp: gasp.info
|
|
|
|
if [ -r gasp.info ]; then \
|
|
|
|
dir=. ; \
|
|
|
|
else \
|
|
|
|
dir=$(srcdir) ; \
|
|
|
|
fi ; \
|
1994-04-19 01:18:54 +00:00
|
|
|
for i in `cd $$dir ; echo gasp.info*` ; do \
|
1994-06-02 16:01:18 +00:00
|
|
|
$(INSTALL_DATA) $$dir/$$i $(infodir)/$$i ; \
|
1992-02-21 09:05:26 +00:00
|
|
|
done
|
|
|
|
|
1994-04-19 01:18:54 +00:00
|
|
|
as.dvi: $(srcdir)/as.texinfo asconfig.texi
|
1994-04-05 18:17:39 +00:00
|
|
|
$(TEXI2DVI) $(srcdir)/as.texinfo
|
1993-04-08 03:13:41 +00:00
|
|
|
|
1994-04-05 18:17:39 +00:00
|
|
|
gasp.dvi: $(srcdir)/gasp.texi
|
|
|
|
$(TEXI2DVI) $(srcdir)/gasp.texi
|
1992-02-21 09:05:26 +00:00
|
|
|
|
|
|
|
# ROFF doc targets as.ms, as.mm, as.me
|
|
|
|
# (we don't use a variable because we don't trust all makes to handle
|
|
|
|
# a var in the target name right).
|
|
|
|
# roff output (-ms)
|
1993-04-08 22:14:53 +00:00
|
|
|
# THESE ARE PROBABLY BROKEN until texi2roff extended for Texinfo conditionals
|
1994-04-19 01:18:54 +00:00
|
|
|
as.ms: $(srcdir)/as.texinfo asconfig.texi
|
1992-02-21 09:05:26 +00:00
|
|
|
sed -e '/\\input texinfo/d' \
|
|
|
|
-e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
|
|
|
|
-e 's/{.*,,/{/' \
|
1994-04-05 18:17:39 +00:00
|
|
|
$(srcdir)/as.texinfo | \
|
1992-02-21 09:05:26 +00:00
|
|
|
texi2roff -ms >as.ms
|
|
|
|
|
|
|
|
# roff output (-mm)
|
1994-04-19 01:18:54 +00:00
|
|
|
as.mm: $(srcdir)/as.texinfo asconfig.texi
|
1992-02-21 09:05:26 +00:00
|
|
|
sed -e '/\\input texinfo/d' \
|
|
|
|
-e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
|
|
|
|
-e 's/{.*,,/{/' \
|
|
|
|
-e '/@noindent/d' \
|
1994-04-05 18:17:39 +00:00
|
|
|
$(srcdir)/as.texinfo | \
|
1992-02-21 09:05:26 +00:00
|
|
|
texi2roff -mm | \
|
|
|
|
sed -e 's/---/\\(em/g' \
|
|
|
|
>as.mm
|
|
|
|
|
|
|
|
# roff output (-me)
|
1994-04-19 01:18:54 +00:00
|
|
|
as.me: $(srcdir)/as.texinfo asconfig.texi
|
1992-02-21 09:05:26 +00:00
|
|
|
sed -e '/\\input texinfo/d' \
|
|
|
|
-e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
|
|
|
|
-e 's/{.*,,/{/' \
|
1994-04-05 18:17:39 +00:00
|
|
|
$(srcdir)/as.texinfo | \
|
1992-02-21 09:05:26 +00:00
|
|
|
texi2roff -me >as.me
|
|
|
|
|
1993-04-08 22:14:53 +00:00
|
|
|
clean: clean-dvi clean-info
|
1994-06-02 16:01:18 +00:00
|
|
|
rm -f asconfig.texi
|
1993-04-08 22:14:53 +00:00
|
|
|
|
1994-04-05 18:17:39 +00:00
|
|
|
distclean:
|
1994-06-02 16:01:18 +00:00
|
|
|
rm -f Makefile config.status asconfig.texi \
|
|
|
|
as.?? as.??s as.aux as.log as.toc \
|
|
|
|
gasp.?? gasp.??s gasp.aux gasp.log gasp.toc
|
1994-04-05 18:17:39 +00:00
|
|
|
|
1993-04-08 22:14:53 +00:00
|
|
|
clean-dvi:
|
1994-06-02 16:01:18 +00:00
|
|
|
rm -f as.?? as.??? gasp.?? gasp.???
|
1993-04-08 22:14:53 +00:00
|
|
|
|
1992-02-21 09:05:26 +00:00
|
|
|
clean-info:
|
1994-06-02 16:01:18 +00:00
|
|
|
rm -f as.info* gasp.info*
|
1992-02-21 09:05:26 +00:00
|
|
|
|
|
|
|
force:
|
|
|
|
|
|
|
|
Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
|
|
|
|
$(SHELL) ./config.status
|