# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#
-# Last Mod Tue Nov 12 22:24:08 PST 1991, by rich@cygnus.com
+# Last Mod Thu Nov 14 03:17:05 PST 1991, by rich@cygnus.com
#
# $Id$
AR_FLAGS = cq
BISON = `if [ -d $(unsubdir)/../bison ] ; \
- then echo \`pwd\`/$(unsubdir)/../bison$(subdir)/bison -L \`pwd\`/$(unsubdir)/../bison$(subdir)/ ; \
+ then echo \`pwd\`/$(unsubdir)/../bison$(subdir)/bison -y -L \`pwd\`/$(unsubdir)/../bison$(subdir)/ ; \
else echo yacc ; fi`
+MAKEINFO = `if [ -d $(unsubdir)/../texinfo/C ] ; \
+ then echo \`pwd\`/$(unsubdir)/../texinfo/C$(subdir)/makeinfo ; \
+ else echo echo ; fi`
+
#\`(cd $(srcdir)/bison ; \\`pwd\\`)\`
-SUBDIRS = libiberty readline bfd gdb binutils ld gas gcc gnulib clib
+SUBDIRS = libiberty glob readline bfd gdb binutils ld gas gcc gnulib clib
OTHERS =
ALL = all.normal
###
all: $(ALL)
+all-info: force
+ $(MAKE) subdir_do DO=all-info "DODIRS=$(SUBDIRS)"
+
+install-info: dir.info install-info-dirs force
+ $(MAKE) subdir_do DO=install-info "DODIRS=$(SUBDIRS)"
+ $(MAKE) install-dir.info
all.normal:
$(MAKE) subdir_do DO=all "DODIRS=$(SUBDIRS) $(OTHERS)"
+./fixed-includes:
+ if [ -d ./fixed-includes ] ; then rm -rf ./fixed-includes ; else true ; fi
+ mkdir ./fixed-includes
+ $(srcdir)/gcc/fixincludes `pwd`/fixed-includes
+
# this is a bad hack.
all.xclib: all.normal
if [ -d clib ] ; then \
if (cd $(unsubdir)/$$i$(subdir); \
$(MAKE) \
"against=$(against)" \
- "BISON=$(BISON)" $(DO)) ; then true ; \
+ "BISON=$(BISON)" \
+ "MAKEINFO=$(MAKEINFO)" \
+ $(DO)) ; then true ; \
else exit 1 ; fi ; \
else if [ -d $(unsubdir)/$$i ] ; then \
if (cd $(unsubdir)/$$i$(subdir); \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
- "BISON=$(BISON)" $(DO)) ; then true ; \
+ "BISON=$(BISON)" \
+ "MAKEINFO=$(MAKEINFO)" \
+ $(DO)) ; then true ; \
else exit 1 ; fi ; \
else true ; fi ; \
fi ; \
done
-
-
-bootstrap:
- $(MAKE) all
+bootstrap: ./fixed-includes
+ $(MAKE) all all-info
$(MAKE) stage1
$(MAKE) pass "stagepass=stage1"
$(MAKE) stage2
$(MAKE) pass "stagepass=stage2"
$(MAKE) comparison
-bootstrap2:
+bootstrap2: ./fixed-includes
$(MAKE) pass "stagepass=stage1"
$(MAKE) stage2
$(MAKE) pass "stagepass=stage2"
$(MAKE) comparison
-bootstrap3:
+bootstrap3: ./fixed-includes
$(MAKE) pass "stagepass=stage2"
$(MAKE) comparison
-pass:
+pass: ./fixed-includes
cp $(srcdir)/gcc/gstdarg.h $(unsubdir)/gas$(subdir)/stdarg.h
- $(MAKE) subdir_do DO=all "DODIRS=$(SUBDIRS)" \
+ $(MAKE) subdir_do "DO=all all-info" "DODIRS=$(SUBDIRS)" \
"CC=`pwd`/$(unsubdir)/gcc$(subdir)/$(stagepass)/gcc \
- -O $(GCCVERBOSE) \
+ -O $(GCCVERBOSE) -I`pwd`/fixed-includes \
-B`pwd`/$(unsubdir)/gcc$(subdir)/$(stagepass)/ \
-B`pwd`/$(unsubdir)/gas$(subdir)/$(stagepass)/ \
-B`pwd`/$(unsubdir)/ld$(subdir)/$(stagepass)/" \
-B`pwd`/$(unsubdir)/ld$(subdir)/$(stagepass)/"
-stage1:
+stage1: ./fixed-includes
$(MAKE) subdir_do DO=stage1 "DODIRS=$(SUBDIRS)"
-stage2:
+stage2: ./fixed-includes
$(MAKE) subdir_do DO=stage2 "DODIRS=$(SUBDIRS)"
-stage3:
+stage3: ./fixed-includes
$(MAKE) subdir_do DO=stage3 "DODIRS=$(SUBDIRS)"
-stage4:
+stage4: ./fixed-includes
$(MAKE) subdir_do DO=stage4 "DODIRS=$(SUBDIRS)"
against=stage2
$(ddestdir)/lib/emacs \
$(idestdir) \
$(idestdir)/lib \
- $(idestdir)/info \
$(idestdir)/doc \
$(idestdir)/man \
$(idestdir)/man/man1 \
if [ -d $$i ] ; then true ; else mkdir $$i ; fi ; \
done
+MAKEINFODIRS= \
+ $(idestdir) \
+ $(idestdir)/info
+
+install-info-dirs: force
+ for i in $(MAKEINFODIRS) ; do \
+ echo Making $$i... ; \
+ if [ -d $$i ] ; then true ; else mkdir $$i ; fi ; \
+ done
+
install-headers:
if [ -d $(unsubdir)/gcc$(subdir) ] ; then \
(cd $(unsubdir)/gcc$(subdir) ; \
else true; \
fi
+install-dir.info-in-place: force
+ rdir=`cd $(srcdir)/texinfo ; pwd` \
+ && cd $(idestdir)/info \
+ && ($${rdir}/gen-info-dir `pwd`) > dir
+
+dir.info: force
+ $(srcdir)/texinfo/gen-info-dir . > dir.info.new
+ mv -f dir.info.new dir.info
+
etags tags: TAGS
TAGS: FORCE
#
# Build GDB distributions that contain BFD, Include, Libiberty, Readline, etc
-DEVO_SUPPORT= README README.configure Makefile.in configure configure.in \
+DEVO_SUPPORT= README DOC.configure Makefile.in configure configure.in \
config.sub config
-GDB_SUPPORT_DIRS= bfd include libiberty readline
+GDB_SUPPORT_DIRS= bfd include libiberty readline glob
GDB_SUPPORT_FILES= $(GDB_SUPPORT_DIRS) texinfo/fsf/texinfo.tex
setup-dirs: force_update
(cd proto-toplev; for i in $(DEVO_SUPPORT) $(GDB_SUPPORT_DIRS); do \
ln -s ../$$i . ; \
done)
+ # Take out texinfo from configurable dirs
+ rm proto-toplev/configure.in
+ sed '/^configdirs=/s/texinfo //' <configure.in >proto-toplev/configure.in
mkdir proto-toplev/texinfo
mkdir proto-toplev/texinfo/fsf
ln -s ../../../texinfo/fsf/texinfo.tex proto-toplev/texinfo/fsf/