-info: cfg-paper.info
- $(MAKE) subdir_do DO=info "DODIRS=$(SUBDIRS)"
-
-clean-info:
- $(MAKE) subdir_do DO=clean-info "DODIRS=$(SUBDIRS)"
- rm -f cfg-paper.info
-
-cfg-paper.info: cfg-paper.texi
- $(MAKEINFO) -o cfg-paper.info $(srcdir)/cfg-paper.texi
-
-configure.info: configure.texi
- $(MAKEINFO) -o configure.info $(srcdir)/configure.texi
-
-install-info: install-info-dirs force
- $(MAKE) subdir_do DO=install-info "DODIRS=$(SUBDIRS)"
- $(INSTALL_DATA) cfg-paper.info $(infodir)/cfg-paper.info
- $(INSTALL_DATA) configure.info $(infodir)/configure.info
- $(MAKE) dir.info install-dir.info
-
-install-dir.info:
- $(INSTALL_DATA) dir.info $(infodir)/dir.info
-
-# clib prms
-# all-gnulib
-all.normal: all-texinfo all-bison all-byacc all-flex all-ld \
- all-gcc all-gas all-binutils \
- all-libg++ all-gdb all-make all-cvs all-patch all-emacs all-ispell all-fileutils
-all.cross: all-bison all-ld all-gnulib all-gdb
-# $(MAKE) subdir_do DO=all "DODIRS=$(SUBDIRS) $(OTHERS)"
-
-clean: clean-libiberty clean-texinfo clean-bfd clean-binutils \
- clean-bison clean-byacc clean-flex clean-ld clean-gas \
- clean-gcc clean-gnulib clean-readline clean-glob clean-gdb \
- clean-make clean-diff clean-grep clean-rcs clean-gdbm \
- clean-cvs clean-patch clean-emacs clean-ispell clean-fileutils
- rm -rf *.a TEMP errs core *.o *~ \#* TAGS *.E
-
-install: $(INSTALL_TARGET) $(srcdir)/configure.man
- $(INSTALL_DATA) $(srcdir)/configure.man $(man1dir)/configure.1
-
-install.all: install-dirs install-libiberty install-texinfo \
- install-binutils install-bison install-byacc install-flex \
- install-ld install-gas install-gcc install-gnulib \
- install-readline install-glob install-gdb install-make \
- install-cvs install-patch install-emacs install-ispell install-fileutils
-install.cross: install-dirs install-libiberty install-binutils install-bison \
- install-byacc install-ld install-gas install-gnulib \
- install-readline install-glob install-gdb
+.PHONY: all check installcheck dvi info install-info install-info-dirs
+.PHONY: do-info do-check do-installcheck do-dvi do-install-info
+.PHONY: do-clean do-mostlyclean do-distclean do-realclean
+.NOEXPORT:
+MAKEOVERRIDES=
+
+# start-sanitize-chill
+## This is ugly, but I don't want GNU make to put these variables in
+## the environment. Older makes will see this as a set of targets
+## with no dependencies and no actions.
+unexport CHILLFLAGS CHILL_LIB CHILL_FOR_TARGET :
+# end-sanitize-chill
+
+# Do a target for all the subdirectories. A ``make do-X'' will do a
+# ``make X'' in all subdirectories (because, in general, there is a
+# dependency (below) of X upon do-X, a ``make X'' will also do this,
+# but it may do additional work as well).
+# This target ensures that $(BASE_FLAGS_TO_PASS) appears only once,
+# because it is so large that it can easily overflow the command line
+# length limit on some systems.
+do-info do-check do-installcheck do-dvi do-install-info do-clean do-mostlyclean do-distclean do-realclean:
+ @target=`echo $@ | sed -e 's/^do-//'`; \
+ rootme=`pwd`; export rootme; \
+ srcroot=`cd $(srcdir); pwd`; export srcroot; \
+ for i in $(SUBDIRS); do \
+ if [ -f ./$$i/Makefile ]; then \
+ case $$i in \
+ $(TARGET_LIBS) ) \
+ for flag in $(EXTRA_TARGET_FLAGS); do \
+ eval `echo "$$flag" | sed -e "s|^\(.*\)=\(.*\)|\1='\2'|"`; \
+ done; \
+ ;; \
+ gcc) \
+ for flag in $(EXTRA_GCC_FLAGS); do \
+ eval `echo "$$flag" | sed -e "s|^\(.*\)=\(.*\)|\1='\2'|"`; \
+ done; \
+ ;; \
+ *) \
+ for flag in $(EXTRA_HOST_FLAGS); do \
+ eval `echo "$$flag" | sed -e "s|^\(.*\)=\(.*\)|\1='\2'|"`; \
+ done; \
+ ;; \
+ esac ; \
+ export AR AS CC CXX NM RANLIB XTRAFLAGS; \
+ if (cd ./$$i; \
+ $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
+ "CC=$${CC}" "CXX=$${CXX}" "NM=$${NM}" \
+ "RANLIB=$${RANLIB}" "XTRAFLAGS=$${XTRAFLAGS}" \
+ $${target}); \
+ then true; else exit 1; fi; \
+ else true; fi; \
+ done
+
+info: do-info
+check: do-check
+installcheck: do-installcheck
+dvi: do-dvi
+
+install-info: install-info-dirs do-install-info dir.info
+ if [ -f dir.info ] ; then \
+ $(INSTALL_DATA) dir.info $(infodir)/dir.info ; \
+ else true ; fi
+
+do-install-info: install-info-dirs
+
+all.normal: all-m4 all-autoconf all-libiberty all-mmalloc all-texinfo \
+ all-byacc all-flex all-opcodes all-bfd all-ld all-gas all-tgas \
+ all-gcc all-binutils all-libg++ all-readline all-sim all-gdb \
+ all-make all-rcs all-cvs all-diff all-grep \
+ all-patch all-emacs all-ispell all-etc \
+ all-tcl all-tk all-expect \
+ all-newlib \
+ $(start-sanitize-chill) \
+ all-chillrt \
+ $(end-sanitize-chill) \
+ all-gprof all-prms all-send-pr all-libm all-dejagnu \
+ all-fileutils all-find all-gawk all-sed all-shellutils \
+ all-textutils all-time all-wdiff all-uudecode \
+ all-hello all-tar all-gzip all-indent all-recode
+
+
+all.cross: all-libiberty all-mmalloc all-gas all-byacc all-flex all-ld \
+ all-opcodes all-bfd all-readline all-sim \
+ all-gdb all-binutils all-gcc all-newlib \
+ $(start-sanitize-chill) \
+ all-chillrt \
+ $(end-sanitize-chill) \
+ all-dejagnu
+
+.PHONY: clean distclean mostlyclean realclean local-clean local-distclean
+
+local-clean:
+ -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E
+
+local-distclean:
+ -rm -f Makefile config.status
+
+clean: do-clean local-clean
+mostlyclean: do-mostlyclean local-clean
+distclean: do-distclean local-clean local-distclean
+realclean: do-realclean local-clean local-distclean
+
+uninstall:
+ @echo "the uninstall target is not supported in this tree"
+
+install: $(INSTALL_TARGET)
+ -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.all: install-no-fixedincludes
+ @if [ -f ./gcc/Makefile ] ; then \
+ rootme=`pwd` ; export rootme ; \
+ (cd ./gcc; \
+ $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
+ else \
+ true ; \
+ fi
+
+install-no-fixedincludes: install-dirs gcc-no-fixedincludes \
+ install-autoconf \
+ install-bfd \
+ install-binutils \
+ install-byacc \
+ $(start-sanitize-chill) \
+ install-chillrt \
+ $(end-sanitize-chill) \
+ install-cvs \
+ install-dejagnu \
+ install-diff \
+ install-emacs \
+ install-etc \
+ install-expect \
+ install-fileutils \
+ install-find \
+ install-flex \
+ install-gas \
+ install-gawk \
+ install-gdb \
+ install-glob \
+ install-gprof \
+ install-grep \
+ install-gzip \
+ install-hello \
+ install-indent \
+ install-ispell \
+ install-ld \
+ install-libg++ \
+ install-libiberty \
+ install-libm \
+ install-m4 \
+ install-make \
+ install-mmalloc \
+ install-newlib \
+ install-opcodes \
+ install-patch \
+ install-prms \
+ install-rcs \
+ install-readline \
+ install-recode \
+ install-sed \
+ install-send-pr \
+ install-shellutils \
+ install-sim \
+ install-tar \
+ install-tcl \
+ install-texinfo \
+ install-textutils \
+ install-time \
+ install-tk \
+ install-uudecode \
+ install-wdiff
+
+#
+# Install the gcc headers files, but not the fixed include files,
+# which we are not allowed to distribute. This rule is very dependent
+# on the workings of the gcc Makefile.in.
+#
+gcc-no-fixedincludes:
+ @if [ -f ./gcc/Makefile ]; then \
+ rm -rf gcc/tmp-include; \
+ mv gcc/include gcc/tmp-include 2>/dev/null; \
+ mkdir gcc/include; \
+ touch gcc/stmp-fixincludes; \
+ rm -f gcc/stmp-headers; \
+ rootme=`pwd`; export rootme; \
+ srcroot=`cd $(srcdir); pwd` ; export srcroot; \
+ (cd ./gcc; \
+ $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
+ rm -rf gcc/include; \
+ mv gcc/tmp-include gcc/include 2>/dev/null; \
+ else true; fi
+
+install.cross: install-dirs install-libiberty install-mmalloc \
+ install-binutils install-opcodes install-byacc install-flex \
+ install-ld install-gas install-readline \
+ install-glob install-gdb install-mmalloc \
+ install-newlib \
+ $(start-sanitize-chill) \
+ install-chillrt \
+ $(end-sanitize-chill) \
+ install-gcc install-etc install-dejagnu
+
+### gzip
+all-gzip: all-libiberty
+ @if [ -f ./gzip/Makefile ] ; then \
+ rootme=`pwd` ; export rootme ; \
+ (cd ./gzip; $(MAKE) $(FLAGS_TO_PASS) all) ; \
+ else \
+ true ; \
+ fi
+
+install-gzip: force
+ @if [ -f ./gzip/Makefile ] ; then \
+ rootme=`pwd` ; export rootme ; \
+ (cd ./gzip; $(MAKE) $(FLAGS_TO_PASS) install) ; \
+ else \
+ true ; \
+ fi
+
+### hello
+all-hello: all-libiberty
+ @if [ -f ./hello/Makefile ] ; then \
+ rootme=`pwd` ; export rootme ; \
+ (cd ./hello; $(MAKE) $(FLAGS_TO_PASS) all) ; \
+ else \
+ true ; \
+ fi
+
+install-hello: force
+ @if [ -f ./hello/Makefile ] ; then \
+ rootme=`pwd` ; export rootme ; \
+ (cd ./hello; $(MAKE) $(FLAGS_TO_PASS) install) ; \
+ else \
+ true ; \
+ fi
+
+### recode
+all-recode: all-libiberty
+ @if [ -f ./recode/Makefile ] ; then \
+ rootme=`pwd` ; export rootme ; \
+ (cd ./recode; $(MAKE) $(FLAGS_TO_PASS) all) ; \
+ else \
+ true ; \
+ fi
+
+install-recode: force
+ @if [ -f ./recode/Makefile ] ; then \
+ rootme=`pwd` ; export rootme ; \
+ (cd ./recode; $(MAKE) $(FLAGS_TO_PASS) install) ; \
+ else \
+ true ; \
+ fi
+
+### indent
+all-indent: force
+ @if [ -f ./indent/Makefile ] ; then \
+ rootme=`pwd` ; export rootme ; \
+ (cd ./indent; $(MAKE) $(FLAGS_TO_PASS) all) ; \
+ else \
+ true ; \
+ fi
+
+install-indent: force
+ @if [ -f ./indent/Makefile ] ; then \
+ rootme=`pwd` ; export rootme ; \
+ (cd ./indent; $(MAKE) $(FLAGS_TO_PASS) install) ; \
+ else \
+ true ; \
+ fi
+
+### tar
+all-tar: all-libiberty
+ @if [ -f ./tar/Makefile ] ; then \
+ rootme=`pwd` ; export rootme ; \
+ (cd ./tar; $(MAKE) $(FLAGS_TO_PASS) all) ; \
+ else \
+ true ; \
+ fi
+
+install-tar: force
+ @if [ -f ./tar/Makefile ] ; then \
+ rootme=`pwd` ; export rootme ; \
+ (cd ./tar; $(MAKE) $(FLAGS_TO_PASS) install) ; \
+ else \
+ true ; \
+ fi
+
+
+### dejagnu
+all-dejagnu: force
+ @if [ -f ./dejagnu/Makefile ] ; then \
+ rootme=`pwd` ; export rootme ; \
+ (cd ./dejagnu; $(MAKE) $(FLAGS_TO_PASS) all) ; \
+ else \
+ true ; \
+ fi
+
+install-dejagnu: force
+ @if [ -f ./dejagnu/Makefile ] ; then \
+ rootme=`pwd` ; export rootme ; \
+ (cd ./dejagnu; $(MAKE) $(FLAGS_TO_PASS) install) ; \
+ else \
+ true ; \
+ fi
+
+### autoconf
+all-autoconf: force
+ @if [ -f ./autoconf/Makefile ] ; then \
+ rootme=`pwd` ; export rootme ; \
+ (cd ./autoconf; $(MAKE) $(FLAGS_TO_PASS) all) ; \
+ else \
+ true ; \
+ fi
+
+install-autoconf: force
+ @if [ -f ./autoconf/Makefile ] ; then \
+ rootme=`pwd` ; export rootme ; \
+ (cd ./autoconf; $(MAKE) $(FLAGS_TO_PASS) install) ; \
+ else \
+ true ; \
+ fi
+
+### etc
+all-etc: force
+ @if [ -f ./etc/Makefile ] ; then \
+ rootme=`pwd` ; export rootme ; \
+ (cd ./etc; $(MAKE) $(FLAGS_TO_PASS) all) ; \
+ else \
+ true ; \
+ fi
+
+install-etc: force
+ @if [ -f ./etc/Makefile ] ; then \
+ rootme=`pwd` ; export rootme ; \
+ (cd ./etc; $(MAKE) $(FLAGS_TO_PASS) install) ; \
+ else \
+ true ; \
+ fi