From 03261889a6a6cf56e929e3a2e102edd908835773 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 18 Aug 1992 21:25:33 +0000 Subject: [PATCH] Moved in from p3: Tue Aug 18 14:19:01 1992 Ian Lance Taylor (ian@cygnus.com) * Makefile.in: always create installation directories. --- gas/doc/ChangeLog | 4 ++++ gas/doc/Makefile.in | 25 +++++++++++++++++-------- 2 files changed, 21 insertions(+), 8 deletions(-) diff --git a/gas/doc/ChangeLog b/gas/doc/ChangeLog index 5fa14792c81..5096fc35881 100644 --- a/gas/doc/ChangeLog +++ b/gas/doc/ChangeLog @@ -1,3 +1,7 @@ +Tue Aug 18 14:19:01 1992 Ian Lance Taylor (ian@cygnus.com) + + * Makefile.in: always create installation directories. + Thu May 14 17:22:48 1992 K. Richard Pixley (rich@rtl.cygnus.com) * Makefile.in: use m4 rather than gm4. diff --git a/gas/doc/Makefile.in b/gas/doc/Makefile.in index 17be946d490..0b4faa5fd54 100644 --- a/gas/doc/Makefile.in +++ b/gas/doc/Makefile.in @@ -29,10 +29,12 @@ srcdir = . prefix = /usr/local -bindir = $(prefix)/bin +exec_prefix = $(prefix) +bindir = $(exec_prefix)/bin +libdir = $(exec_prefix)/lib + datadir = $(prefix)/lib -libdir = $(prefix)/lib -mandir = $(datadir)/man +mandir = $(prefix)/man man1dir = $(mandir)/man1 man2dir = $(mandir)/man2 man3dir = $(mandir)/man3 @@ -42,7 +44,7 @@ man6dir = $(mandir)/man6 man7dir = $(mandir)/man7 man8dir = $(mandir)/man8 man9dir = $(mandir)/man9 -infodir = $(datadir)/info +infodir = $(prefix)/info includedir = $(prefix)/include docdir = $(datadir)/doc @@ -57,19 +59,20 @@ AR_FLAGS = qv BISON = bison MAKEINFO = makeinfo RANLIB = ranlib +MAKEINFO = makeinfo # What version of the manual you want (see *.m4); "all" includes everything CONFIG=all # Sun/Berkeley m4 doesn't have all the things we need; use GNU or sV -M4=gm4 +M4=m4 #M4=/usr/5bin/m4 # Directory for gas source srcdir=.. # Where to find texinfo.tex to format docn with TeX -TEXIDIR = $(srcdir)/../texinfo/fsf +TEXIDIR = $(srcdir)/../../texinfo/fsf #### host, target, and site specific Makefile frags come in here. ## @@ -77,14 +80,20 @@ TEXIDIR = $(srcdir)/../texinfo/fsf all: clean: install: + -parent=`echo $(man1dir)|sed -e 's@/[^/]*$$@@'`; \ + if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi + -if [ -d $(man1dir) ] ; then true ; else mkdir $(man1dir) ; fi + $(INSTALL_DATA) $(srcdir)/as.1 $(man1dir)/as.1 info: as.info as.info: as-${CONFIG}.texinfo - makeinfo -o as.info as-${CONFIG}.texinfo + $(MAKEINFO) -o as.info $(srcdir)/as-${CONFIG}.texinfo install-info: as.info - [ -d $(infodir) ] || mkdir $(infodir) + -parent=`echo $(infodir)|sed -e 's@/[^/]*$$@@'`; \ + if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi + -if [ -d $(infodir) ] ; then true ; else mkdir $(infodir) ; fi for i in as.info* ; do \ $(INSTALL_DATA) $$i $(infodir)/$$i ; \ done -- 2.30.2