FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
CC_FOR_TARGET = @CC_FOR_TARGET@
CXX_FOR_TARGET = @CXX_FOR_TARGET@
+RAW_CXX_FOR_TARGET = @RAW_CXX_FOR_TARGET@
CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
+RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
GCJ_FOR_TARGET = @GCJ_FOR_TARGET@
# If GCC_FOR_TARGET is not overriden on the command line, then this
# so we pass these variables down unchanged. They must not contain
# single nor double quotes.
RECURSE_FLAGS = \
- CXX_FOR_TARGET='$(CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)'
+ CXX_FOR_TARGET='$(CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \
+ RAW_CXX_FOR_TARGET='$(RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \
# Flags to pass down to most sub-makes, in which we're building with
# the host environment.
GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS)
-# This is a list of the targets for all of the modules which are compiled
-# using the build machine's native compiler. Configure edits the second
-# macro for build!=host builds.
-ALL_BUILD_MODULES_LIST = \
- all-build-libiberty
-ALL_BUILD_MODULES = @all_build_modules@
-
-# This is a list of the configure targets for all of the modules which
-# are compiled using the native tools.
-CONFIGURE_BUILD_MODULES = \
- configure-build-libiberty
-
# This is a list of the configure targets for all of the modules which
# are compiled using the target tools.
CONFIGURE_TARGET_MODULES = \
# These rules are used to build the modules which are built with the
# build machine's native compiler.
-.PHONY: all-build-libiberty
+.PHONY: all-build-libiberty maybe-all-build-libiberty
+maybe-all-build-libiberty:
all-build-libiberty:
@if [ -f ./libiberty/Makefile ] ; then \
r=`${PWD}`; export r; \
true; \
fi
-.PHONY: configure-build-libiberty
+.PHONY: configure-build-libiberty maybe-configure-build-libiberty
+maybe-configure-build-libiberty:
configure-build-libiberty:
@if [ ! -d $(BUILD_SUBDIR) ]; then \
true; \
srcdiroption="--srcdir=$${topdir}/libiberty"; \
libsrcdir="$$s/libiberty"; \
fi; \
- if [ -f $${libsrcdir}/configure ] ; then \
- rm -f no-such-file skip-this-dir; \
- CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
- $(BUILD_CONFIGARGS) $${srcdiroption} \
- --with-build-subdir="$(BUILD_SUBDIR)"; \
- else \
- rm -f no-such-file skip-this-dir; \
- CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
- $(BUILD_CONFIGARGS) $${srcdiroption} \
- --with-build-subdir="$(BUILD_SUBDIR)"; \
- fi || exit 1; \
- if [ -f skip-this-dir ] ; then \
- sh skip-this-dir; \
- rm -f skip-this-dir; \
- cd ..; rmdir libiberty || true; \
- else \
- true; \
- fi; \
+ rm -f no-such-file || : ; \
+ CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
+ $(BUILD_CONFIGARGS) $${srcdiroption} \
+ --with-build-subdir="$(BUILD_SUBDIR)" \
+ || exit 1; \
else \
true; \
fi; \
# These rules are used to build the modules which use FLAGS_TO_PASS. To
# build a target all-X means to cd to X and make all.
-.PHONY: all-ash
+.PHONY: all-ash maybe-all-ash
+maybe-all-ash:
all-ash:
- @dir=ash; \
- if [ -f ./ash/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd ash; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd ash; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-ash
check-ash:
- @dir=ash; \
- if [ -f ./ash/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd ash; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd ash; $(MAKE) $(FLAGS_TO_PASS) check)
-.PHONY: install-ash
+.PHONY: install-ash maybe-install-ash
+maybe-install-ash:
install-ash: installdirs
- @dir=ash; \
- if [ -f ./ash/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd ash; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd ash; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-autoconf
+.PHONY: all-autoconf maybe-all-autoconf
+maybe-all-autoconf:
all-autoconf:
- @dir=autoconf; \
- if [ -f ./autoconf/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd autoconf; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd autoconf; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-autoconf
check-autoconf:
- @dir=autoconf; \
- if [ -f ./autoconf/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd autoconf; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd autoconf; $(MAKE) $(FLAGS_TO_PASS) check)
-.PHONY: install-autoconf
+.PHONY: install-autoconf maybe-install-autoconf
+maybe-install-autoconf:
install-autoconf: installdirs
- @dir=autoconf; \
- if [ -f ./autoconf/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd autoconf; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd autoconf; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-automake
+.PHONY: all-automake maybe-all-automake
+maybe-all-automake:
all-automake:
- @dir=automake; \
- if [ -f ./automake/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd automake; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd automake; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-automake
check-automake:
- @dir=automake; \
- if [ -f ./automake/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd automake; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd automake; $(MAKE) $(FLAGS_TO_PASS) check)
-.PHONY: install-automake
+.PHONY: install-automake maybe-install-automake
+maybe-install-automake:
install-automake: installdirs
- @dir=automake; \
- if [ -f ./automake/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd automake; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd automake; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-bash
+.PHONY: all-bash maybe-all-bash
+maybe-all-bash:
all-bash:
- @dir=bash; \
- if [ -f ./bash/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd bash; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd bash; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-bash
check-bash:
- @dir=bash; \
- if [ -f ./bash/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd bash; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd bash; $(MAKE) $(FLAGS_TO_PASS) check)
-.PHONY: install-bash
+.PHONY: install-bash maybe-install-bash
+maybe-install-bash:
install-bash: installdirs
- @dir=bash; \
- if [ -f ./bash/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd bash; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd bash; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-bfd
+.PHONY: all-bfd maybe-all-bfd
+maybe-all-bfd:
all-bfd:
- @dir=bfd; \
- if [ -f ./bfd/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd bfd; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd bfd; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-bfd
check-bfd:
- @dir=bfd; \
- if [ -f ./bfd/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd bfd; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd bfd; $(MAKE) $(FLAGS_TO_PASS) check)
-.PHONY: install-bfd
+.PHONY: install-bfd maybe-install-bfd
+maybe-install-bfd:
install-bfd: installdirs
- @dir=bfd; \
- if [ -f ./bfd/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd bfd; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd bfd; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-opcodes
+.PHONY: all-opcodes maybe-all-opcodes
+maybe-all-opcodes:
all-opcodes:
- @dir=opcodes; \
- if [ -f ./opcodes/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd opcodes; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd opcodes; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-opcodes
check-opcodes:
- @dir=opcodes; \
- if [ -f ./opcodes/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd opcodes; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd opcodes; $(MAKE) $(FLAGS_TO_PASS) check)
-.PHONY: install-opcodes
+.PHONY: install-opcodes maybe-install-opcodes
+maybe-install-opcodes:
install-opcodes: installdirs
- @dir=opcodes; \
- if [ -f ./opcodes/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd opcodes; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd opcodes; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-binutils
+.PHONY: all-binutils maybe-all-binutils
+maybe-all-binutils:
all-binutils:
- @dir=binutils; \
- if [ -f ./binutils/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd binutils; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd binutils; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-binutils
check-binutils:
- @dir=binutils; \
- if [ -f ./binutils/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd binutils; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd binutils; $(MAKE) $(FLAGS_TO_PASS) check)
-.PHONY: install-binutils
+.PHONY: install-binutils maybe-install-binutils
+maybe-install-binutils:
install-binutils: installdirs
- @dir=binutils; \
- if [ -f ./binutils/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd binutils; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd binutils; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-bison
+.PHONY: all-bison maybe-all-bison
+maybe-all-bison:
all-bison:
- @dir=bison; \
- if [ -f ./bison/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd bison; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd bison; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-bison
# This module is only tested in a native toolchain.
check-bison:
@if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
- dir=bison; \
- if [ -f ./bison/Makefile ] ; then \
r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd bison; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi; \
fi
-.PHONY: install-bison
+.PHONY: install-bison maybe-install-bison
+maybe-install-bison:
install-bison: installdirs
- @dir=bison; \
- if [ -f ./bison/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd bison; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd bison; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-byacc
+.PHONY: all-byacc maybe-all-byacc
+maybe-all-byacc:
all-byacc:
- @dir=byacc; \
- if [ -f ./byacc/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd byacc; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd byacc; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-byacc
# This module is only tested in a native toolchain.
check-byacc:
@if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
- dir=byacc; \
- if [ -f ./byacc/Makefile ] ; then \
r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd byacc; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi; \
fi
-.PHONY: install-byacc
+.PHONY: install-byacc maybe-install-byacc
+maybe-install-byacc:
install-byacc: installdirs
- @dir=byacc; \
- if [ -f ./byacc/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd byacc; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd byacc; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-bzip2
+.PHONY: all-bzip2 maybe-all-bzip2
+maybe-all-bzip2:
all-bzip2:
- @dir=bzip2; \
- if [ -f ./bzip2/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd bzip2; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd bzip2; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-bzip2
check-bzip2:
- @dir=bzip2; \
- if [ -f ./bzip2/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd bzip2; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd bzip2; $(MAKE) $(FLAGS_TO_PASS) check)
-.PHONY: install-bzip2
+.PHONY: install-bzip2 maybe-install-bzip2
+maybe-install-bzip2:
install-bzip2: installdirs
- @dir=bzip2; \
- if [ -f ./bzip2/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd bzip2; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd bzip2; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-db
+.PHONY: all-db maybe-all-db
+maybe-all-db:
all-db:
- @dir=db; \
- if [ -f ./db/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd db; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd db; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-db
check-db:
- @dir=db; \
- if [ -f ./db/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd db; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd db; $(MAKE) $(FLAGS_TO_PASS) check)
-.PHONY: install-db
+.PHONY: install-db maybe-install-db
+maybe-install-db:
install-db: installdirs
- @dir=db; \
- if [ -f ./db/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd db; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd db; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-dejagnu
+.PHONY: all-dejagnu maybe-all-dejagnu
+maybe-all-dejagnu:
all-dejagnu:
- @dir=dejagnu; \
- if [ -f ./dejagnu/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd dejagnu; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd dejagnu; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-dejagnu
check-dejagnu:
- @dir=dejagnu; \
- if [ -f ./dejagnu/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd dejagnu; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd dejagnu; $(MAKE) $(FLAGS_TO_PASS) check)
-.PHONY: install-dejagnu
+.PHONY: install-dejagnu maybe-install-dejagnu
+maybe-install-dejagnu:
install-dejagnu: installdirs
- @dir=dejagnu; \
- if [ -f ./dejagnu/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd dejagnu; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd dejagnu; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-diff
+.PHONY: all-diff maybe-all-diff
+maybe-all-diff:
all-diff:
- @dir=diff; \
- if [ -f ./diff/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd diff; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd diff; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-diff
check-diff:
- @dir=diff; \
- if [ -f ./diff/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd diff; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd diff; $(MAKE) $(FLAGS_TO_PASS) check)
-.PHONY: install-diff
+.PHONY: install-diff maybe-install-diff
+maybe-install-diff:
install-diff: installdirs
- @dir=diff; \
- if [ -f ./diff/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd diff; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd diff; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-dosutils
+.PHONY: all-dosutils maybe-all-dosutils
+maybe-all-dosutils:
all-dosutils:
- @dir=dosutils; \
- if [ -f ./dosutils/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd dosutils; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd dosutils; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-dosutils
-.PHONY: install-dosutils
+.PHONY: install-dosutils maybe-install-dosutils
+maybe-install-dosutils:
install-dosutils: installdirs
- @dir=dosutils; \
- if [ -f ./dosutils/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd dosutils; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd dosutils; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-etc
+.PHONY: all-etc maybe-all-etc
+maybe-all-etc:
all-etc:
- @dir=etc; \
- if [ -f ./etc/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd etc; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd etc; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-etc
check-etc:
- @dir=etc; \
- if [ -f ./etc/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd etc; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd etc; $(MAKE) $(FLAGS_TO_PASS) check)
-.PHONY: install-etc
+.PHONY: install-etc maybe-install-etc
+maybe-install-etc:
install-etc: installdirs
- @dir=etc; \
- if [ -f ./etc/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd etc; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd etc; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-fastjar
+.PHONY: all-fastjar maybe-all-fastjar
+maybe-all-fastjar:
all-fastjar:
- @dir=fastjar; \
- if [ -f ./fastjar/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd fastjar; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd fastjar; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-fastjar
# This module is only tested in a native toolchain.
check-fastjar:
@if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
- dir=fastjar; \
- if [ -f ./fastjar/Makefile ] ; then \
r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd fastjar; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi; \
fi
-.PHONY: install-fastjar
+.PHONY: install-fastjar maybe-install-fastjar
+maybe-install-fastjar:
install-fastjar: installdirs
- @dir=fastjar; \
- if [ -f ./fastjar/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd fastjar; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd fastjar; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-fileutils
+.PHONY: all-fileutils maybe-all-fileutils
+maybe-all-fileutils:
all-fileutils:
- @dir=fileutils; \
- if [ -f ./fileutils/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd fileutils; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd fileutils; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-fileutils
check-fileutils:
- @dir=fileutils; \
- if [ -f ./fileutils/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd fileutils; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd fileutils; $(MAKE) $(FLAGS_TO_PASS) check)
-.PHONY: install-fileutils
+.PHONY: install-fileutils maybe-install-fileutils
+maybe-install-fileutils:
install-fileutils: installdirs
- @dir=fileutils; \
- if [ -f ./fileutils/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd fileutils; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd fileutils; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-findutils
+.PHONY: all-findutils maybe-all-findutils
+maybe-all-findutils:
all-findutils:
- @dir=findutils; \
- if [ -f ./findutils/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd findutils; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd findutils; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-findutils
check-findutils:
- @dir=findutils; \
- if [ -f ./findutils/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd findutils; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd findutils; $(MAKE) $(FLAGS_TO_PASS) check)
-.PHONY: install-findutils
+.PHONY: install-findutils maybe-install-findutils
+maybe-install-findutils:
install-findutils: installdirs
- @dir=findutils; \
- if [ -f ./findutils/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd findutils; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd findutils; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-find
+.PHONY: all-find maybe-all-find
+maybe-all-find:
all-find:
- @dir=find; \
- if [ -f ./find/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd find; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd find; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-find
check-find:
- @dir=find; \
- if [ -f ./find/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd find; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd find; $(MAKE) $(FLAGS_TO_PASS) check)
-.PHONY: install-find
+.PHONY: install-find maybe-install-find
+maybe-install-find:
install-find: installdirs
- @dir=find; \
- if [ -f ./find/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd find; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd find; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-flex
+.PHONY: all-flex maybe-all-flex
+maybe-all-flex:
all-flex:
- @dir=flex; \
- if [ -f ./flex/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd flex; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd flex; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-flex
# This module is only tested in a native toolchain.
check-flex:
@if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
- dir=flex; \
- if [ -f ./flex/Makefile ] ; then \
r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd flex; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi; \
fi
-.PHONY: install-flex
+.PHONY: install-flex maybe-install-flex
+maybe-install-flex:
install-flex: installdirs
- @dir=flex; \
- if [ -f ./flex/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd flex; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd flex; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-gas
+.PHONY: all-gas maybe-all-gas
+maybe-all-gas:
all-gas:
- @dir=gas; \
- if [ -f ./gas/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd gas; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd gas; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-gas
check-gas:
- @dir=gas; \
- if [ -f ./gas/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd gas; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd gas; $(MAKE) $(FLAGS_TO_PASS) check)
-.PHONY: install-gas
+.PHONY: install-gas maybe-install-gas
+maybe-install-gas:
install-gas: installdirs
- @dir=gas; \
- if [ -f ./gas/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd gas; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd gas; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-gawk
+.PHONY: all-gawk maybe-all-gawk
+maybe-all-gawk:
all-gawk:
- @dir=gawk; \
- if [ -f ./gawk/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd gawk; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd gawk; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-gawk
check-gawk:
- @dir=gawk; \
- if [ -f ./gawk/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd gawk; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd gawk; $(MAKE) $(FLAGS_TO_PASS) check)
-.PHONY: install-gawk
+.PHONY: install-gawk maybe-install-gawk
+maybe-install-gawk:
install-gawk: installdirs
- @dir=gawk; \
- if [ -f ./gawk/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd gawk; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd gawk; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-gettext
+.PHONY: all-gettext maybe-all-gettext
+maybe-all-gettext:
all-gettext:
- @dir=gettext; \
- if [ -f ./gettext/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd gettext; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd gettext; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-gettext
check-gettext:
- @dir=gettext; \
- if [ -f ./gettext/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd gettext; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd gettext; $(MAKE) $(FLAGS_TO_PASS) check)
-.PHONY: install-gettext
+.PHONY: install-gettext maybe-install-gettext
+maybe-install-gettext:
install-gettext: installdirs
- @dir=gettext; \
- if [ -f ./gettext/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd gettext; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd gettext; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-gnuserv
+.PHONY: all-gnuserv maybe-all-gnuserv
+maybe-all-gnuserv:
all-gnuserv:
- @dir=gnuserv; \
- if [ -f ./gnuserv/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd gnuserv; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd gnuserv; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-gnuserv
check-gnuserv:
- @dir=gnuserv; \
- if [ -f ./gnuserv/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd gnuserv; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd gnuserv; $(MAKE) $(FLAGS_TO_PASS) check)
-.PHONY: install-gnuserv
+.PHONY: install-gnuserv maybe-install-gnuserv
+maybe-install-gnuserv:
install-gnuserv: installdirs
- @dir=gnuserv; \
- if [ -f ./gnuserv/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd gnuserv; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd gnuserv; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-gprof
+.PHONY: all-gprof maybe-all-gprof
+maybe-all-gprof:
all-gprof:
- @dir=gprof; \
- if [ -f ./gprof/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd gprof; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd gprof; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-gprof
check-gprof:
- @dir=gprof; \
- if [ -f ./gprof/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd gprof; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd gprof; $(MAKE) $(FLAGS_TO_PASS) check)
-.PHONY: install-gprof
+.PHONY: install-gprof maybe-install-gprof
+maybe-install-gprof:
install-gprof: installdirs
- @dir=gprof; \
- if [ -f ./gprof/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd gprof; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd gprof; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-grep
+.PHONY: all-grep maybe-all-grep
+maybe-all-grep:
all-grep:
- @dir=grep; \
- if [ -f ./grep/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd grep; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd grep; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-grep
check-grep:
- @dir=grep; \
- if [ -f ./grep/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd grep; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd grep; $(MAKE) $(FLAGS_TO_PASS) check)
-.PHONY: install-grep
+.PHONY: install-grep maybe-install-grep
+maybe-install-grep:
install-grep: installdirs
- @dir=grep; \
- if [ -f ./grep/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd grep; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd grep; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-gzip
+.PHONY: all-gzip maybe-all-gzip
+maybe-all-gzip:
all-gzip:
- @dir=gzip; \
- if [ -f ./gzip/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd gzip; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd gzip; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-gzip
check-gzip:
- @dir=gzip; \
- if [ -f ./gzip/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd gzip; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd gzip; $(MAKE) $(FLAGS_TO_PASS) check)
-.PHONY: install-gzip
+.PHONY: install-gzip maybe-install-gzip
+maybe-install-gzip:
install-gzip: installdirs
- @dir=gzip; \
- if [ -f ./gzip/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd gzip; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd gzip; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-hello
+.PHONY: all-hello maybe-all-hello
+maybe-all-hello:
all-hello:
- @dir=hello; \
- if [ -f ./hello/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd hello; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd hello; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-hello
check-hello:
- @dir=hello; \
- if [ -f ./hello/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd hello; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd hello; $(MAKE) $(FLAGS_TO_PASS) check)
-.PHONY: install-hello
+.PHONY: install-hello maybe-install-hello
+maybe-install-hello:
install-hello: installdirs
- @dir=hello; \
- if [ -f ./hello/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd hello; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd hello; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-indent
+.PHONY: all-indent maybe-all-indent
+maybe-all-indent:
all-indent:
- @dir=indent; \
- if [ -f ./indent/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd indent; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd indent; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-indent
check-indent:
- @dir=indent; \
- if [ -f ./indent/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd indent; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd indent; $(MAKE) $(FLAGS_TO_PASS) check)
-.PHONY: install-indent
+.PHONY: install-indent maybe-install-indent
+maybe-install-indent:
install-indent: installdirs
- @dir=indent; \
- if [ -f ./indent/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd indent; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd indent; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-intl
+.PHONY: all-intl maybe-all-intl
+maybe-all-intl:
all-intl:
- @dir=intl; \
- if [ -f ./intl/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd intl; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd intl; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-intl
check-intl:
- @dir=intl; \
- if [ -f ./intl/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd intl; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd intl; $(MAKE) $(FLAGS_TO_PASS) check)
-.PHONY: install-intl
+.PHONY: install-intl maybe-install-intl
+maybe-install-intl:
install-intl: installdirs
- @dir=intl; \
- if [ -f ./intl/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd intl; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd intl; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-tcl
+.PHONY: all-tcl maybe-all-tcl
+maybe-all-tcl:
all-tcl:
- @dir=tcl; \
- if [ -f ./tcl/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd tcl; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd tcl; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-tcl
check-tcl:
- @dir=tcl; \
- if [ -f ./tcl/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd tcl; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd tcl; $(MAKE) $(FLAGS_TO_PASS) check)
-.PHONY: install-tcl
+.PHONY: install-tcl maybe-install-tcl
+maybe-install-tcl:
install-tcl: installdirs
- @dir=tcl; \
- if [ -f ./tcl/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd tcl; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd tcl; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-itcl
+.PHONY: all-itcl maybe-all-itcl
+maybe-all-itcl:
all-itcl:
- @dir=itcl; \
- if [ -f ./itcl/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd itcl; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd itcl; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-itcl
check-itcl:
- @dir=itcl; \
- if [ -f ./itcl/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd itcl; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd itcl; $(MAKE) $(FLAGS_TO_PASS) check)
-.PHONY: install-itcl
+.PHONY: install-itcl maybe-install-itcl
+maybe-install-itcl:
install-itcl: installdirs
- @dir=itcl; \
- if [ -f ./itcl/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd itcl; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd itcl; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-ld
+.PHONY: all-ld maybe-all-ld
+maybe-all-ld:
all-ld:
- @dir=ld; \
- if [ -f ./ld/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd ld; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd ld; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-ld
check-ld:
- @dir=ld; \
- if [ -f ./ld/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd ld; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd ld; $(MAKE) $(FLAGS_TO_PASS) check)
-.PHONY: install-ld
+.PHONY: install-ld maybe-install-ld
+maybe-install-ld:
install-ld: installdirs
- @dir=ld; \
- if [ -f ./ld/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd ld; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd ld; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-libgui
+.PHONY: all-libgui maybe-all-libgui
+maybe-all-libgui:
all-libgui:
- @dir=libgui; \
- if [ -f ./libgui/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd libgui; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd libgui; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-libgui
check-libgui:
- @dir=libgui; \
- if [ -f ./libgui/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd libgui; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd libgui; $(MAKE) $(FLAGS_TO_PASS) check)
-.PHONY: install-libgui
+.PHONY: install-libgui maybe-install-libgui
+maybe-install-libgui:
install-libgui: installdirs
- @dir=libgui; \
- if [ -f ./libgui/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd libgui; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd libgui; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-libiberty
+.PHONY: all-libiberty maybe-all-libiberty
+maybe-all-libiberty:
all-libiberty:
- @dir=libiberty; \
- if [ -f ./libiberty/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd libiberty; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd libiberty; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-libiberty
check-libiberty:
- @dir=libiberty; \
- if [ -f ./libiberty/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd libiberty; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd libiberty; $(MAKE) $(FLAGS_TO_PASS) check)
-.PHONY: install-libiberty
+.PHONY: install-libiberty maybe-install-libiberty
+maybe-install-libiberty:
install-libiberty: installdirs
- @dir=libiberty; \
- if [ -f ./libiberty/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd libiberty; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd libiberty; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-libtool
+.PHONY: all-libtool maybe-all-libtool
+maybe-all-libtool:
all-libtool:
- @dir=libtool; \
- if [ -f ./libtool/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd libtool; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd libtool; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-libtool
check-libtool:
- @dir=libtool; \
- if [ -f ./libtool/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd libtool; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd libtool; $(MAKE) $(FLAGS_TO_PASS) check)
-.PHONY: install-libtool
+.PHONY: install-libtool maybe-install-libtool
+maybe-install-libtool:
install-libtool: installdirs
- @dir=libtool; \
- if [ -f ./libtool/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd libtool; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd libtool; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-m4
+.PHONY: all-m4 maybe-all-m4
+maybe-all-m4:
all-m4:
- @dir=m4; \
- if [ -f ./m4/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd m4; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd m4; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-m4
check-m4:
- @dir=m4; \
- if [ -f ./m4/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd m4; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd m4; $(MAKE) $(FLAGS_TO_PASS) check)
-.PHONY: install-m4
+.PHONY: install-m4 maybe-install-m4
+maybe-install-m4:
install-m4: installdirs
- @dir=m4; \
- if [ -f ./m4/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd m4; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd m4; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-make
+.PHONY: all-make maybe-all-make
+maybe-all-make:
all-make:
- @dir=make; \
- if [ -f ./make/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd make; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd make; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-make
check-make:
- @dir=make; \
- if [ -f ./make/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd make; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd make; $(MAKE) $(FLAGS_TO_PASS) check)
-.PHONY: install-make
+.PHONY: install-make maybe-install-make
+maybe-install-make:
install-make: installdirs
- @dir=make; \
- if [ -f ./make/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd make; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd make; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-mmalloc
+.PHONY: all-mmalloc maybe-all-mmalloc
+maybe-all-mmalloc:
all-mmalloc:
- @dir=mmalloc; \
- if [ -f ./mmalloc/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd mmalloc; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd mmalloc; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-mmalloc
-.PHONY: install-mmalloc
+.PHONY: install-mmalloc maybe-install-mmalloc
+maybe-install-mmalloc:
install-mmalloc: installdirs
- @dir=mmalloc; \
- if [ -f ./mmalloc/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd mmalloc; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd mmalloc; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-patch
+.PHONY: all-patch maybe-all-patch
+maybe-all-patch:
all-patch:
- @dir=patch; \
- if [ -f ./patch/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd patch; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd patch; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-patch
check-patch:
- @dir=patch; \
- if [ -f ./patch/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd patch; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd patch; $(MAKE) $(FLAGS_TO_PASS) check)
-.PHONY: install-patch
+.PHONY: install-patch maybe-install-patch
+maybe-install-patch:
install-patch: installdirs
- @dir=patch; \
- if [ -f ./patch/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd patch; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd patch; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-perl
+.PHONY: all-perl maybe-all-perl
+maybe-all-perl:
all-perl:
- @dir=perl; \
- if [ -f ./perl/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd perl; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd perl; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-perl
check-perl:
- @dir=perl; \
- if [ -f ./perl/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd perl; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd perl; $(MAKE) $(FLAGS_TO_PASS) check)
-.PHONY: install-perl
+.PHONY: install-perl maybe-install-perl
+maybe-install-perl:
install-perl: installdirs
- @dir=perl; \
- if [ -f ./perl/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd perl; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd perl; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-prms
+.PHONY: all-prms maybe-all-prms
+maybe-all-prms:
all-prms:
- @dir=prms; \
- if [ -f ./prms/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd prms; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd prms; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-prms
check-prms:
- @dir=prms; \
- if [ -f ./prms/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd prms; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd prms; $(MAKE) $(FLAGS_TO_PASS) check)
-.PHONY: install-prms
+.PHONY: install-prms maybe-install-prms
+maybe-install-prms:
install-prms: installdirs
- @dir=prms; \
- if [ -f ./prms/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd prms; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd prms; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-rcs
+.PHONY: all-rcs maybe-all-rcs
+maybe-all-rcs:
all-rcs:
- @dir=rcs; \
- if [ -f ./rcs/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd rcs; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd rcs; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-rcs
check-rcs:
- @dir=rcs; \
- if [ -f ./rcs/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd rcs; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd rcs; $(MAKE) $(FLAGS_TO_PASS) check)
-.PHONY: install-rcs
+.PHONY: install-rcs maybe-install-rcs
+maybe-install-rcs:
install-rcs: installdirs
- @dir=rcs; \
- if [ -f ./rcs/Makefile ] ; then \
- r=`${PWD}`; export r; \
- s=`cd $(srcdir); ${PWD}`; export s; \
- $(SET_LIB_PATH) \
- (cd rcs; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ @r=`${PWD}`; export r; \
+ s=`cd $(srcdir); ${PWD}`; export s; \
+ $(SET_LIB_PATH) \
+ (cd rcs; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-readline
+.PHONY: all-readline maybe-all-readline
+maybe-all-readline:
all-readline:
- @dir=readline; \
- if [ -f ./readline/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd readline; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd readline; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-readline
check-readline:
- @dir=readline; \
- if [ -f ./readline/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd readline; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd readline; $(MAKE) $(FLAGS_TO_PASS) check)
-.PHONY: install-readline
+.PHONY: install-readline maybe-install-readline
+maybe-install-readline:
install-readline: installdirs
- @dir=readline; \
- if [ -f ./readline/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd readline; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd readline; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-release
+.PHONY: all-release maybe-all-release
+maybe-all-release:
all-release:
- @dir=release; \
- if [ -f ./release/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd release; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd release; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-release
-.PHONY: install-release
+.PHONY: install-release maybe-install-release
+maybe-install-release:
install-release:
-.PHONY: all-recode
+.PHONY: all-recode maybe-all-recode
+maybe-all-recode:
all-recode:
- @dir=recode; \
- if [ -f ./recode/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd recode; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd recode; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-recode
check-recode:
- @dir=recode; \
- if [ -f ./recode/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd recode; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd recode; $(MAKE) $(FLAGS_TO_PASS) check)
-.PHONY: install-recode
+.PHONY: install-recode maybe-install-recode
+maybe-install-recode:
install-recode: installdirs
- @dir=recode; \
- if [ -f ./recode/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd recode; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd recode; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-sed
+.PHONY: all-sed maybe-all-sed
+maybe-all-sed:
all-sed:
- @dir=sed; \
- if [ -f ./sed/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd sed; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd sed; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-sed
check-sed:
- @dir=sed; \
- if [ -f ./sed/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd sed; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd sed; $(MAKE) $(FLAGS_TO_PASS) check)
-.PHONY: install-sed
+.PHONY: install-sed maybe-install-sed
+maybe-install-sed:
install-sed: installdirs
- @dir=sed; \
- if [ -f ./sed/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd sed; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd sed; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-send-pr
+.PHONY: all-send-pr maybe-all-send-pr
+maybe-all-send-pr:
all-send-pr:
- @dir=send-pr; \
- if [ -f ./send-pr/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd send-pr; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd send-pr; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-send-pr
check-send-pr:
- @dir=send-pr; \
- if [ -f ./send-pr/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd send-pr; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd send-pr; $(MAKE) $(FLAGS_TO_PASS) check)
-.PHONY: install-send-pr
+.PHONY: install-send-pr maybe-install-send-pr
+maybe-install-send-pr:
install-send-pr: installdirs
- @dir=send-pr; \
- if [ -f ./send-pr/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd send-pr; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd send-pr; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-shellutils
+.PHONY: all-shellutils maybe-all-shellutils
+maybe-all-shellutils:
all-shellutils:
- @dir=shellutils; \
- if [ -f ./shellutils/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd shellutils; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd shellutils; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-shellutils
check-shellutils:
- @dir=shellutils; \
- if [ -f ./shellutils/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd shellutils; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd shellutils; $(MAKE) $(FLAGS_TO_PASS) check)
-.PHONY: install-shellutils
+.PHONY: install-shellutils maybe-install-shellutils
+maybe-install-shellutils:
install-shellutils: installdirs
- @dir=shellutils; \
- if [ -f ./shellutils/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd shellutils; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd shellutils; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-sid
+.PHONY: all-sid maybe-all-sid
+maybe-all-sid:
all-sid:
- @dir=sid; \
- if [ -f ./sid/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd sid; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd sid; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-sid
check-sid:
- @dir=sid; \
- if [ -f ./sid/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd sid; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd sid; $(MAKE) $(FLAGS_TO_PASS) check)
-.PHONY: install-sid
+.PHONY: install-sid maybe-install-sid
+maybe-install-sid:
install-sid: installdirs
- @dir=sid; \
- if [ -f ./sid/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd sid; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd sid; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-sim
+.PHONY: all-sim maybe-all-sim
+maybe-all-sim:
all-sim:
- @dir=sim; \
- if [ -f ./sim/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd sim; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd sim; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-sim
check-sim:
- @dir=sim; \
- if [ -f ./sim/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd sim; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd sim; $(MAKE) $(FLAGS_TO_PASS) check)
-.PHONY: install-sim
+.PHONY: install-sim maybe-install-sim
+maybe-install-sim:
install-sim: installdirs
- @dir=sim; \
- if [ -f ./sim/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd sim; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd sim; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-snavigator
+.PHONY: all-snavigator maybe-all-snavigator
+maybe-all-snavigator:
all-snavigator:
- @dir=snavigator; \
- if [ -f ./snavigator/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd snavigator; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd snavigator; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-snavigator
check-snavigator:
- @dir=snavigator; \
- if [ -f ./snavigator/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd snavigator; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd snavigator; $(MAKE) $(FLAGS_TO_PASS) check)
-.PHONY: install-snavigator
+.PHONY: install-snavigator maybe-install-snavigator
+maybe-install-snavigator:
install-snavigator: installdirs
- @dir=snavigator; \
- if [ -f ./snavigator/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd snavigator; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd snavigator; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-tar
+.PHONY: all-tar maybe-all-tar
+maybe-all-tar:
all-tar:
- @dir=tar; \
- if [ -f ./tar/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd tar; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd tar; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-tar
check-tar:
- @dir=tar; \
- if [ -f ./tar/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd tar; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd tar; $(MAKE) $(FLAGS_TO_PASS) check)
-.PHONY: install-tar
+.PHONY: install-tar maybe-install-tar
+maybe-install-tar:
install-tar: installdirs
- @dir=tar; \
- if [ -f ./tar/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd tar; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd tar; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-texinfo
+.PHONY: all-texinfo maybe-all-texinfo
+maybe-all-texinfo:
all-texinfo:
- @dir=texinfo; \
- if [ -f ./texinfo/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd texinfo; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd texinfo; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-texinfo
check-texinfo:
- @dir=texinfo; \
- if [ -f ./texinfo/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd texinfo; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd texinfo; $(MAKE) $(FLAGS_TO_PASS) check)
-.PHONY: install-texinfo
+.PHONY: install-texinfo maybe-install-texinfo
+maybe-install-texinfo:
install-texinfo:
-.PHONY: all-textutils
+.PHONY: all-textutils maybe-all-textutils
+maybe-all-textutils:
all-textutils:
- @dir=textutils; \
- if [ -f ./textutils/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd textutils; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd textutils; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-textutils
check-textutils:
- @dir=textutils; \
- if [ -f ./textutils/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd textutils; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd textutils; $(MAKE) $(FLAGS_TO_PASS) check)
-.PHONY: install-textutils
+.PHONY: install-textutils maybe-install-textutils
+maybe-install-textutils:
install-textutils: installdirs
- @dir=textutils; \
- if [ -f ./textutils/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd textutils; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd textutils; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-time
+.PHONY: all-time maybe-all-time
+maybe-all-time:
all-time:
- @dir=time; \
- if [ -f ./time/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd time; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd time; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-time
check-time:
- @dir=time; \
- if [ -f ./time/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd time; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd time; $(MAKE) $(FLAGS_TO_PASS) check)
-.PHONY: install-time
+.PHONY: install-time maybe-install-time
+maybe-install-time:
install-time: installdirs
- @dir=time; \
- if [ -f ./time/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd time; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd time; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-uudecode
+.PHONY: all-uudecode maybe-all-uudecode
+maybe-all-uudecode:
all-uudecode:
- @dir=uudecode; \
- if [ -f ./uudecode/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd uudecode; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd uudecode; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-uudecode
check-uudecode:
- @dir=uudecode; \
- if [ -f ./uudecode/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd uudecode; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd uudecode; $(MAKE) $(FLAGS_TO_PASS) check)
-.PHONY: install-uudecode
+.PHONY: install-uudecode maybe-install-uudecode
+maybe-install-uudecode:
install-uudecode: installdirs
- @dir=uudecode; \
- if [ -f ./uudecode/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd uudecode; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd uudecode; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-wdiff
+.PHONY: all-wdiff maybe-all-wdiff
+maybe-all-wdiff:
all-wdiff:
- @dir=wdiff; \
- if [ -f ./wdiff/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd wdiff; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd wdiff; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-wdiff
check-wdiff:
- @dir=wdiff; \
- if [ -f ./wdiff/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd wdiff; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd wdiff; $(MAKE) $(FLAGS_TO_PASS) check)
-.PHONY: install-wdiff
+.PHONY: install-wdiff maybe-install-wdiff
+maybe-install-wdiff:
install-wdiff: installdirs
- @dir=wdiff; \
- if [ -f ./wdiff/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd wdiff; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd wdiff; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-zip
+.PHONY: all-zip maybe-all-zip
+maybe-all-zip:
all-zip:
- @dir=zip; \
- if [ -f ./zip/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd zip; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd zip; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-zip
# This module is only tested in a native toolchain.
check-zip:
@if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
- dir=zip; \
- if [ -f ./zip/Makefile ] ; then \
r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd zip; $(MAKE) $(FLAGS_TO_PASS) check); \
- else \
- true; \
- fi; \
fi
-.PHONY: install-zip
+.PHONY: install-zip maybe-install-zip
+maybe-install-zip:
install-zip: installdirs
- @dir=zip; \
- if [ -f ./zip/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd zip; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd zip; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-zlib
+.PHONY: all-zlib maybe-all-zlib
+maybe-all-zlib:
all-zlib:
- @dir=zlib; \
- if [ -f ./zlib/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd zlib; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd zlib; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-zlib
-.PHONY: install-zlib
+.PHONY: install-zlib maybe-install-zlib
+maybe-install-zlib:
install-zlib:
-.PHONY: all-gdb
+.PHONY: all-gdb maybe-all-gdb
+maybe-all-gdb:
all-gdb:
- @dir=gdb; \
- if [ -f ./gdb/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd gdb; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd gdb; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
.PHONY: check-gdb
check-gdb:
- @dir=gdb; \
- if [ -f ./gdb/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd gdb; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd gdb; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
-.PHONY: install-gdb
+.PHONY: install-gdb maybe-install-gdb
+maybe-install-gdb:
install-gdb: installdirs
- @dir=gdb; \
- if [ -f ./gdb/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd gdb; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd gdb; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
-.PHONY: all-expect
+.PHONY: all-expect maybe-all-expect
+maybe-all-expect:
all-expect:
- @dir=expect; \
- if [ -f ./expect/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd expect; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd expect; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
.PHONY: check-expect
check-expect:
- @dir=expect; \
- if [ -f ./expect/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd expect; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd expect; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
-.PHONY: install-expect
+.PHONY: install-expect maybe-install-expect
+maybe-install-expect:
install-expect: installdirs
- @dir=expect; \
- if [ -f ./expect/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd expect; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd expect; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
-.PHONY: all-guile
+.PHONY: all-guile maybe-all-guile
+maybe-all-guile:
all-guile:
- @dir=guile; \
- if [ -f ./guile/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd guile; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd guile; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
.PHONY: check-guile
check-guile:
- @dir=guile; \
- if [ -f ./guile/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd guile; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd guile; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
-.PHONY: install-guile
+.PHONY: install-guile maybe-install-guile
+maybe-install-guile:
install-guile: installdirs
- @dir=guile; \
- if [ -f ./guile/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd guile; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd guile; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
-.PHONY: all-tclX
+.PHONY: all-tclX maybe-all-tclX
+maybe-all-tclX:
all-tclX:
- @dir=tclX; \
- if [ -f ./tclX/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd tclX; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd tclX; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
.PHONY: check-tclX
check-tclX:
- @dir=tclX; \
- if [ -f ./tclX/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd tclX; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd tclX; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
-.PHONY: install-tclX
+.PHONY: install-tclX maybe-install-tclX
+maybe-install-tclX:
install-tclX: installdirs
- @dir=tclX; \
- if [ -f ./tclX/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd tclX; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd tclX; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
-.PHONY: all-tk
+.PHONY: all-tk maybe-all-tk
+maybe-all-tk:
all-tk:
- @dir=tk; \
- if [ -f ./tk/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd tk; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd tk; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
.PHONY: check-tk
check-tk:
- @dir=tk; \
- if [ -f ./tk/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd tk; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd tk; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
-.PHONY: install-tk
+.PHONY: install-tk maybe-install-tk
+maybe-install-tk:
install-tk: installdirs
- @dir=tk; \
- if [ -f ./tk/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd tk; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd tk; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
-.PHONY: all-tix
+.PHONY: all-tix maybe-all-tix
+maybe-all-tix:
all-tix:
- @dir=tix; \
- if [ -f ./tix/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd tix; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd tix; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
.PHONY: check-tix
check-tix:
- @dir=tix; \
- if [ -f ./tix/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd tix; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check); \
- else \
- true; \
- fi
+ (cd tix; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
-.PHONY: install-tix
+.PHONY: install-tix maybe-install-tix
+maybe-install-tix:
install-tix: installdirs
- @dir=tix; \
- if [ -f ./tix/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd tix; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd tix; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
-.PHONY: all-libtermcap
+.PHONY: all-libtermcap maybe-all-libtermcap
+maybe-all-libtermcap:
all-libtermcap:
- @dir=libtermcap; \
- if [ -f ./libtermcap/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd libtermcap; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd libtermcap; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-libtermcap
-.PHONY: install-libtermcap
+.PHONY: install-libtermcap maybe-install-libtermcap
+maybe-install-libtermcap:
install-libtermcap: installdirs
- @dir=libtermcap; \
- if [ -f ./libtermcap/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd libtermcap; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd libtermcap; $(MAKE) $(FLAGS_TO_PASS) install)
-.PHONY: all-utils
+.PHONY: all-utils maybe-all-utils
+maybe-all-utils:
all-utils:
- @dir=utils; \
- if [ -f ./utils/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd utils; $(MAKE) $(FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ (cd utils; $(MAKE) $(FLAGS_TO_PASS) all)
.PHONY: check-utils
-.PHONY: install-utils
+.PHONY: install-utils maybe-install-utils
+maybe-install-utils:
install-utils: installdirs
- @dir=utils; \
- if [ -f ./utils/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
- (cd utils; $(MAKE) $(FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ (cd utils; $(MAKE) $(FLAGS_TO_PASS) install)
# These rules are used to build the modules which are built with the target
# tools. To make foo-X means to cd to X and make foo.
-.PHONY: configure-target-libstdc++-v3
+.PHONY: configure-target-libstdc++-v3 maybe-configure-target-libstdc++-v3
+maybe-configure-target-libstdc++-v3:
configure-target-libstdc++-v3:
- @if [ -d $(TARGET_SUBDIR)/libstdc++-v3 ]; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
$(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/tmpmulti.out 2> /dev/null; \
if [ -s $(TARGET_SUBDIR)/libstdc++-v3/tmpmulti.out ]; then \
if [ -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.out ]; then \
else \
mv $(TARGET_SUBDIR)/libstdc++-v3/tmpmulti.out $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
fi; \
- fi; \
fi; exit 0 # break command into two pieces
- @dir=libstdc++-v3 ; \
- if [ ! -d $(TARGET_SUBDIR) ]; then \
- true; \
- elif [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] ; then \
- true; \
- elif echo " $(TARGET_CONFIGDIRS) " | grep " libstdc++-v3 " >/dev/null 2>&1; then \
- if [ -d $(srcdir)/libstdc++-v3 ]; then \
+ @if [ -d $(srcdir)/libstdc++-v3 ]; then \
[ -d $(TARGET_SUBDIR)/libstdc++-v3 ] || mkdir $(TARGET_SUBDIR)/libstdc++-v3;\
r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
AS="$(AS_FOR_TARGET)"; export AS; \
CC="$(CC_FOR_TARGET)"; export CC; \
CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
- CXX="$(CXX_FOR_TARGET)"; export CXX; \
+ CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
+ CXX="$(RAW_CXX_FOR_TARGET)"; export CXX; \
CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
srcdiroption="--srcdir=$${topdir}/libstdc++-v3"; \
libsrcdir="$$s/libstdc++-v3"; \
fi; \
- if [ -f $${libsrcdir}/configure ] ; then \
- rm -f no-such-file skip-this-dir; \
- CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
- $(TARGET_CONFIGARGS) $${srcdiroption} \
- --with-target-subdir="$(TARGET_SUBDIR)"; \
- else \
- rm -f no-such-file skip-this-dir; \
- CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
- $(TARGET_CONFIGARGS) $${srcdiroption} \
- --with-target-subdir="$(TARGET_SUBDIR)"; \
- fi || exit 1; \
- if [ -f skip-this-dir ] ; then \
- sh skip-this-dir; \
- rm -f skip-this-dir; \
- cd ..; rmdir libstdc++-v3 || true; \
- else \
- true; \
- fi; \
+ rm -f no-such-file || : ; \
+ CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
+ $(TARGET_CONFIGARGS) $${srcdiroption} \
+ --with-target-subdir="$(TARGET_SUBDIR)" \
+ || exit 1; \
else \
true; \
- fi; \
- else \
- true; \
- fi
+ fi
-.PHONY: all-target-libstdc++-v3
+.PHONY: all-target-libstdc++-v3 maybe-all-target-libstdc++-v3
+maybe-all-target-libstdc++-v3:
all-target-libstdc++-v3:
- @dir=libstdc++-v3 ; \
- if [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd $(TARGET_SUBDIR)/libstdc++-v3; \
- $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' all)
.PHONY: check-target-libstdc++-v3
check-target-libstdc++-v3:
- @dir=libstdc++-v3 ; \
- if [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd $(TARGET_SUBDIR)/libstdc++-v3; \
- $(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
- else \
- true; \
- fi
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
+
-\
-.PHONY: install-target-libstdc++-v3
+.PHONY: install-target-libstdc++-v3 maybe-install-target-libstdc++-v3
+maybe-install-target-libstdc++-v3:
install-target-libstdc++-v3: installdirs
- @dir=libstdc++-v3 ; \
- if [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd $(TARGET_SUBDIR)/libstdc++-v3; \
- $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
-.PHONY: configure-target-newlib
+.PHONY: configure-target-newlib maybe-configure-target-newlib
+maybe-configure-target-newlib:
configure-target-newlib:
- @if [ -d $(TARGET_SUBDIR)/newlib ]; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
$(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/newlib/tmpmulti.out 2> /dev/null; \
if [ -s $(TARGET_SUBDIR)/newlib/tmpmulti.out ]; then \
if [ -f $(TARGET_SUBDIR)/newlib/multilib.out ]; then \
else \
mv $(TARGET_SUBDIR)/newlib/tmpmulti.out $(TARGET_SUBDIR)/newlib/multilib.out; \
fi; \
- fi; \
fi; exit 0 # break command into two pieces
- @dir=newlib ; \
- if [ ! -d $(TARGET_SUBDIR) ]; then \
- true; \
- elif [ -f $(TARGET_SUBDIR)/newlib/Makefile ] ; then \
- true; \
- elif echo " $(TARGET_CONFIGDIRS) " | grep " newlib " >/dev/null 2>&1; then \
- if [ -d $(srcdir)/newlib ]; then \
+ @if [ -d $(srcdir)/newlib ]; then \
[ -d $(TARGET_SUBDIR)/newlib ] || mkdir $(TARGET_SUBDIR)/newlib;\
r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
srcdiroption="--srcdir=$${topdir}/newlib"; \
libsrcdir="$$s/newlib"; \
fi; \
- if [ -f $${libsrcdir}/configure ] ; then \
- rm -f no-such-file skip-this-dir; \
- CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
- $(TARGET_CONFIGARGS) $${srcdiroption} \
- --with-target-subdir="$(TARGET_SUBDIR)"; \
- else \
- rm -f no-such-file skip-this-dir; \
- CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
- $(TARGET_CONFIGARGS) $${srcdiroption} \
- --with-target-subdir="$(TARGET_SUBDIR)"; \
- fi || exit 1; \
- if [ -f skip-this-dir ] ; then \
- sh skip-this-dir; \
- rm -f skip-this-dir; \
- cd ..; rmdir newlib || true; \
- else \
- true; \
- fi; \
+ rm -f no-such-file || : ; \
+ CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
+ $(TARGET_CONFIGARGS) $${srcdiroption} \
+ --with-target-subdir="$(TARGET_SUBDIR)" \
+ || exit 1; \
else \
true; \
- fi; \
- else \
- true; \
- fi
+ fi
-.PHONY: all-target-newlib
+.PHONY: all-target-newlib maybe-all-target-newlib
+maybe-all-target-newlib:
all-target-newlib:
- @dir=newlib ; \
- if [ -f $(TARGET_SUBDIR)/newlib/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd $(TARGET_SUBDIR)/newlib; \
- $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
.PHONY: check-target-newlib
check-target-newlib:
- @dir=newlib ; \
- if [ -f $(TARGET_SUBDIR)/newlib/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd $(TARGET_SUBDIR)/newlib; \
- $(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
- else \
- true; \
- fi
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
+
-\
-.PHONY: install-target-newlib
+.PHONY: install-target-newlib maybe-install-target-newlib
+maybe-install-target-newlib:
install-target-newlib: installdirs
- @dir=newlib ; \
- if [ -f $(TARGET_SUBDIR)/newlib/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd $(TARGET_SUBDIR)/newlib; \
- $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
-.PHONY: configure-target-libf2c
+.PHONY: configure-target-libf2c maybe-configure-target-libf2c
+maybe-configure-target-libf2c:
configure-target-libf2c:
- @if [ -d $(TARGET_SUBDIR)/libf2c ]; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
$(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libf2c/tmpmulti.out 2> /dev/null; \
if [ -s $(TARGET_SUBDIR)/libf2c/tmpmulti.out ]; then \
if [ -f $(TARGET_SUBDIR)/libf2c/multilib.out ]; then \
else \
mv $(TARGET_SUBDIR)/libf2c/tmpmulti.out $(TARGET_SUBDIR)/libf2c/multilib.out; \
fi; \
- fi; \
fi; exit 0 # break command into two pieces
- @dir=libf2c ; \
- if [ ! -d $(TARGET_SUBDIR) ]; then \
- true; \
- elif [ -f $(TARGET_SUBDIR)/libf2c/Makefile ] ; then \
- true; \
- elif echo " $(TARGET_CONFIGDIRS) " | grep " libf2c " >/dev/null 2>&1; then \
- if [ -d $(srcdir)/libf2c ]; then \
+ @if [ -d $(srcdir)/libf2c ]; then \
[ -d $(TARGET_SUBDIR)/libf2c ] || mkdir $(TARGET_SUBDIR)/libf2c;\
r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
srcdiroption="--srcdir=$${topdir}/libf2c"; \
libsrcdir="$$s/libf2c"; \
fi; \
- if [ -f $${libsrcdir}/configure ] ; then \
- rm -f no-such-file skip-this-dir; \
- CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
- $(TARGET_CONFIGARGS) $${srcdiroption} \
- --with-target-subdir="$(TARGET_SUBDIR)"; \
- else \
- rm -f no-such-file skip-this-dir; \
- CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
- $(TARGET_CONFIGARGS) $${srcdiroption} \
- --with-target-subdir="$(TARGET_SUBDIR)"; \
- fi || exit 1; \
- if [ -f skip-this-dir ] ; then \
- sh skip-this-dir; \
- rm -f skip-this-dir; \
- cd ..; rmdir libf2c || true; \
- else \
- true; \
- fi; \
+ rm -f no-such-file || : ; \
+ CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
+ $(TARGET_CONFIGARGS) $${srcdiroption} \
+ --with-target-subdir="$(TARGET_SUBDIR)" \
+ || exit 1; \
else \
true; \
- fi; \
- else \
- true; \
- fi
+ fi
-.PHONY: all-target-libf2c
+.PHONY: all-target-libf2c maybe-all-target-libf2c
+maybe-all-target-libf2c:
all-target-libf2c:
- @dir=libf2c ; \
- if [ -f $(TARGET_SUBDIR)/libf2c/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd $(TARGET_SUBDIR)/libf2c; \
- $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
.PHONY: check-target-libf2c
check-target-libf2c:
- @dir=libf2c ; \
- if [ -f $(TARGET_SUBDIR)/libf2c/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd $(TARGET_SUBDIR)/libf2c; \
- $(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
- else \
- true; \
- fi
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
+
-\
-.PHONY: install-target-libf2c
+.PHONY: install-target-libf2c maybe-install-target-libf2c
+maybe-install-target-libf2c:
install-target-libf2c: installdirs
- @dir=libf2c ; \
- if [ -f $(TARGET_SUBDIR)/libf2c/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd $(TARGET_SUBDIR)/libf2c; \
- $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
-.PHONY: configure-target-libobjc
+.PHONY: configure-target-libobjc maybe-configure-target-libobjc
+maybe-configure-target-libobjc:
configure-target-libobjc:
- @if [ -d $(TARGET_SUBDIR)/libobjc ]; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
$(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libobjc/tmpmulti.out 2> /dev/null; \
if [ -s $(TARGET_SUBDIR)/libobjc/tmpmulti.out ]; then \
if [ -f $(TARGET_SUBDIR)/libobjc/multilib.out ]; then \
else \
mv $(TARGET_SUBDIR)/libobjc/tmpmulti.out $(TARGET_SUBDIR)/libobjc/multilib.out; \
fi; \
- fi; \
fi; exit 0 # break command into two pieces
- @dir=libobjc ; \
- if [ ! -d $(TARGET_SUBDIR) ]; then \
- true; \
- elif [ -f $(TARGET_SUBDIR)/libobjc/Makefile ] ; then \
- true; \
- elif echo " $(TARGET_CONFIGDIRS) " | grep " libobjc " >/dev/null 2>&1; then \
- if [ -d $(srcdir)/libobjc ]; then \
+ @if [ -d $(srcdir)/libobjc ]; then \
[ -d $(TARGET_SUBDIR)/libobjc ] || mkdir $(TARGET_SUBDIR)/libobjc;\
r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
srcdiroption="--srcdir=$${topdir}/libobjc"; \
libsrcdir="$$s/libobjc"; \
fi; \
- if [ -f $${libsrcdir}/configure ] ; then \
- rm -f no-such-file skip-this-dir; \
- CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
- $(TARGET_CONFIGARGS) $${srcdiroption} \
- --with-target-subdir="$(TARGET_SUBDIR)"; \
- else \
- rm -f no-such-file skip-this-dir; \
- CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
- $(TARGET_CONFIGARGS) $${srcdiroption} \
- --with-target-subdir="$(TARGET_SUBDIR)"; \
- fi || exit 1; \
- if [ -f skip-this-dir ] ; then \
- sh skip-this-dir; \
- rm -f skip-this-dir; \
- cd ..; rmdir libobjc || true; \
- else \
- true; \
- fi; \
+ rm -f no-such-file || : ; \
+ CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
+ $(TARGET_CONFIGARGS) $${srcdiroption} \
+ --with-target-subdir="$(TARGET_SUBDIR)" \
+ || exit 1; \
else \
true; \
- fi; \
- else \
- true; \
- fi
+ fi
-.PHONY: all-target-libobjc
+.PHONY: all-target-libobjc maybe-all-target-libobjc
+maybe-all-target-libobjc:
all-target-libobjc:
- @dir=libobjc ; \
- if [ -f $(TARGET_SUBDIR)/libobjc/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd $(TARGET_SUBDIR)/libobjc; \
- $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
.PHONY: check-target-libobjc
check-target-libobjc:
- @dir=libobjc ; \
- if [ -f $(TARGET_SUBDIR)/libobjc/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd $(TARGET_SUBDIR)/libobjc; \
- $(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
- else \
- true; \
- fi
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
+
-\
-.PHONY: install-target-libobjc
+.PHONY: install-target-libobjc maybe-install-target-libobjc
+maybe-install-target-libobjc:
install-target-libobjc: installdirs
- @dir=libobjc ; \
- if [ -f $(TARGET_SUBDIR)/libobjc/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd $(TARGET_SUBDIR)/libobjc; \
- $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
-.PHONY: configure-target-libtermcap
+.PHONY: configure-target-libtermcap maybe-configure-target-libtermcap
+maybe-configure-target-libtermcap:
configure-target-libtermcap:
- @if [ -d $(TARGET_SUBDIR)/libtermcap ]; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
$(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libtermcap/tmpmulti.out 2> /dev/null; \
if [ -s $(TARGET_SUBDIR)/libtermcap/tmpmulti.out ]; then \
if [ -f $(TARGET_SUBDIR)/libtermcap/multilib.out ]; then \
else \
mv $(TARGET_SUBDIR)/libtermcap/tmpmulti.out $(TARGET_SUBDIR)/libtermcap/multilib.out; \
fi; \
- fi; \
fi; exit 0 # break command into two pieces
- @dir=libtermcap ; \
- if [ ! -d $(TARGET_SUBDIR) ]; then \
- true; \
- elif [ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] ; then \
- true; \
- elif echo " $(TARGET_CONFIGDIRS) " | grep " libtermcap " >/dev/null 2>&1; then \
- if [ -d $(srcdir)/libtermcap ]; then \
+ @if [ -d $(srcdir)/libtermcap ]; then \
[ -d $(TARGET_SUBDIR)/libtermcap ] || mkdir $(TARGET_SUBDIR)/libtermcap;\
r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
srcdiroption="--srcdir=$${topdir}/libtermcap"; \
libsrcdir="$$s/libtermcap"; \
fi; \
- if [ -f $${libsrcdir}/configure ] ; then \
- rm -f no-such-file skip-this-dir; \
- CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
- $(TARGET_CONFIGARGS) $${srcdiroption} \
- --with-target-subdir="$(TARGET_SUBDIR)"; \
- else \
- rm -f no-such-file skip-this-dir; \
- CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
- $(TARGET_CONFIGARGS) $${srcdiroption} \
- --with-target-subdir="$(TARGET_SUBDIR)"; \
- fi || exit 1; \
- if [ -f skip-this-dir ] ; then \
- sh skip-this-dir; \
- rm -f skip-this-dir; \
- cd ..; rmdir libtermcap || true; \
- else \
- true; \
- fi; \
+ rm -f no-such-file || : ; \
+ CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
+ $(TARGET_CONFIGARGS) $${srcdiroption} \
+ --with-target-subdir="$(TARGET_SUBDIR)" \
+ || exit 1; \
else \
true; \
- fi; \
- else \
- true; \
- fi
+ fi
-.PHONY: all-target-libtermcap
+.PHONY: all-target-libtermcap maybe-all-target-libtermcap
+maybe-all-target-libtermcap:
all-target-libtermcap:
- @dir=libtermcap ; \
- if [ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd $(TARGET_SUBDIR)/libtermcap; \
- $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
# Dummy target for uncheckable module.
.PHONY: check-target-libtermcap
check-target-libtermcap:
-\
-.PHONY: install-target-libtermcap
+
+.PHONY: install-target-libtermcap maybe-install-target-libtermcap
+maybe-install-target-libtermcap:
install-target-libtermcap: installdirs
- @dir=libtermcap ; \
- if [ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd $(TARGET_SUBDIR)/libtermcap; \
- $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
-.PHONY: configure-target-winsup
+.PHONY: configure-target-winsup maybe-configure-target-winsup
+maybe-configure-target-winsup:
configure-target-winsup:
- @if [ -d $(TARGET_SUBDIR)/winsup ]; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
$(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/winsup/tmpmulti.out 2> /dev/null; \
if [ -s $(TARGET_SUBDIR)/winsup/tmpmulti.out ]; then \
if [ -f $(TARGET_SUBDIR)/winsup/multilib.out ]; then \
else \
mv $(TARGET_SUBDIR)/winsup/tmpmulti.out $(TARGET_SUBDIR)/winsup/multilib.out; \
fi; \
- fi; \
fi; exit 0 # break command into two pieces
- @dir=winsup ; \
- if [ ! -d $(TARGET_SUBDIR) ]; then \
- true; \
- elif [ -f $(TARGET_SUBDIR)/winsup/Makefile ] ; then \
- true; \
- elif echo " $(TARGET_CONFIGDIRS) " | grep " winsup " >/dev/null 2>&1; then \
- if [ -d $(srcdir)/winsup ]; then \
+ @if [ -d $(srcdir)/winsup ]; then \
[ -d $(TARGET_SUBDIR)/winsup ] || mkdir $(TARGET_SUBDIR)/winsup;\
r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
srcdiroption="--srcdir=$${topdir}/winsup"; \
libsrcdir="$$s/winsup"; \
fi; \
- if [ -f $${libsrcdir}/configure ] ; then \
- rm -f no-such-file skip-this-dir; \
- CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
- $(TARGET_CONFIGARGS) $${srcdiroption} \
- --with-target-subdir="$(TARGET_SUBDIR)"; \
- else \
- rm -f no-such-file skip-this-dir; \
- CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
- $(TARGET_CONFIGARGS) $${srcdiroption} \
- --with-target-subdir="$(TARGET_SUBDIR)"; \
- fi || exit 1; \
- if [ -f skip-this-dir ] ; then \
- sh skip-this-dir; \
- rm -f skip-this-dir; \
- cd ..; rmdir winsup || true; \
- else \
- true; \
- fi; \
+ rm -f no-such-file || : ; \
+ CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
+ $(TARGET_CONFIGARGS) $${srcdiroption} \
+ --with-target-subdir="$(TARGET_SUBDIR)" \
+ || exit 1; \
else \
true; \
- fi; \
- else \
- true; \
- fi
+ fi
-.PHONY: all-target-winsup
+.PHONY: all-target-winsup maybe-all-target-winsup
+maybe-all-target-winsup:
all-target-winsup:
- @dir=winsup ; \
- if [ -f $(TARGET_SUBDIR)/winsup/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd $(TARGET_SUBDIR)/winsup; \
- $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
.PHONY: check-target-winsup
check-target-winsup:
- @dir=winsup ; \
- if [ -f $(TARGET_SUBDIR)/winsup/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd $(TARGET_SUBDIR)/winsup; \
- $(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
- else \
- true; \
- fi
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
-\
-.PHONY: install-target-winsup
+
+.PHONY: install-target-winsup maybe-install-target-winsup
+maybe-install-target-winsup:
install-target-winsup: installdirs
- @dir=winsup ; \
- if [ -f $(TARGET_SUBDIR)/winsup/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd $(TARGET_SUBDIR)/winsup; \
- $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
-.PHONY: configure-target-libgloss
+.PHONY: configure-target-libgloss maybe-configure-target-libgloss
+maybe-configure-target-libgloss:
configure-target-libgloss:
- @if [ -d $(TARGET_SUBDIR)/libgloss ]; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
$(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgloss/tmpmulti.out 2> /dev/null; \
if [ -s $(TARGET_SUBDIR)/libgloss/tmpmulti.out ]; then \
if [ -f $(TARGET_SUBDIR)/libgloss/multilib.out ]; then \
else \
mv $(TARGET_SUBDIR)/libgloss/tmpmulti.out $(TARGET_SUBDIR)/libgloss/multilib.out; \
fi; \
- fi; \
fi; exit 0 # break command into two pieces
- @dir=libgloss ; \
- if [ ! -d $(TARGET_SUBDIR) ]; then \
- true; \
- elif [ -f $(TARGET_SUBDIR)/libgloss/Makefile ] ; then \
- true; \
- elif echo " $(TARGET_CONFIGDIRS) " | grep " libgloss " >/dev/null 2>&1; then \
- if [ -d $(srcdir)/libgloss ]; then \
+ @if [ -d $(srcdir)/libgloss ]; then \
[ -d $(TARGET_SUBDIR)/libgloss ] || mkdir $(TARGET_SUBDIR)/libgloss;\
r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
srcdiroption="--srcdir=$${topdir}/libgloss"; \
libsrcdir="$$s/libgloss"; \
fi; \
- if [ -f $${libsrcdir}/configure ] ; then \
- rm -f no-such-file skip-this-dir; \
- CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
- $(TARGET_CONFIGARGS) $${srcdiroption} \
- --with-target-subdir="$(TARGET_SUBDIR)"; \
- else \
- rm -f no-such-file skip-this-dir; \
- CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
- $(TARGET_CONFIGARGS) $${srcdiroption} \
- --with-target-subdir="$(TARGET_SUBDIR)"; \
- fi || exit 1; \
- if [ -f skip-this-dir ] ; then \
- sh skip-this-dir; \
- rm -f skip-this-dir; \
- cd ..; rmdir libgloss || true; \
- else \
- true; \
- fi; \
+ rm -f no-such-file || : ; \
+ CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
+ $(TARGET_CONFIGARGS) $${srcdiroption} \
+ --with-target-subdir="$(TARGET_SUBDIR)" \
+ || exit 1; \
else \
true; \
- fi; \
- else \
- true; \
- fi
+ fi
-.PHONY: all-target-libgloss
+.PHONY: all-target-libgloss maybe-all-target-libgloss
+maybe-all-target-libgloss:
all-target-libgloss:
- @dir=libgloss ; \
- if [ -f $(TARGET_SUBDIR)/libgloss/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd $(TARGET_SUBDIR)/libgloss; \
- $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
# Dummy target for uncheckable module.
.PHONY: check-target-libgloss
check-target-libgloss:
-\
-.PHONY: install-target-libgloss
+
+.PHONY: install-target-libgloss maybe-install-target-libgloss
+maybe-install-target-libgloss:
install-target-libgloss: installdirs
- @dir=libgloss ; \
- if [ -f $(TARGET_SUBDIR)/libgloss/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd $(TARGET_SUBDIR)/libgloss; \
- $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
-.PHONY: configure-target-libiberty
+.PHONY: configure-target-libiberty maybe-configure-target-libiberty
+maybe-configure-target-libiberty:
configure-target-libiberty:
- @if [ -d $(TARGET_SUBDIR)/libiberty ]; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
$(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libiberty/tmpmulti.out 2> /dev/null; \
if [ -s $(TARGET_SUBDIR)/libiberty/tmpmulti.out ]; then \
if [ -f $(TARGET_SUBDIR)/libiberty/multilib.out ]; then \
else \
mv $(TARGET_SUBDIR)/libiberty/tmpmulti.out $(TARGET_SUBDIR)/libiberty/multilib.out; \
fi; \
- fi; \
fi; exit 0 # break command into two pieces
- @dir=libiberty ; \
- if [ ! -d $(TARGET_SUBDIR) ]; then \
- true; \
- elif [ -f $(TARGET_SUBDIR)/libiberty/Makefile ] ; then \
- true; \
- elif echo " $(TARGET_CONFIGDIRS) " | grep " libiberty " >/dev/null 2>&1; then \
- if [ -d $(srcdir)/libiberty ]; then \
+ @if [ -d $(srcdir)/libiberty ]; then \
[ -d $(TARGET_SUBDIR)/libiberty ] || mkdir $(TARGET_SUBDIR)/libiberty;\
r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
srcdiroption="--srcdir=$${topdir}/libiberty"; \
libsrcdir="$$s/libiberty"; \
fi; \
- if [ -f $${libsrcdir}/configure ] ; then \
- rm -f no-such-file skip-this-dir; \
- CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
- $(TARGET_CONFIGARGS) $${srcdiroption} \
- --with-target-subdir="$(TARGET_SUBDIR)"; \
- else \
- rm -f no-such-file skip-this-dir; \
- CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
- $(TARGET_CONFIGARGS) $${srcdiroption} \
- --with-target-subdir="$(TARGET_SUBDIR)"; \
- fi || exit 1; \
- if [ -f skip-this-dir ] ; then \
- sh skip-this-dir; \
- rm -f skip-this-dir; \
- cd ..; rmdir libiberty || true; \
- else \
- true; \
- fi; \
+ rm -f no-such-file || : ; \
+ CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
+ $(TARGET_CONFIGARGS) $${srcdiroption} \
+ --with-target-subdir="$(TARGET_SUBDIR)" \
+ || exit 1; \
else \
true; \
- fi; \
- else \
- true; \
- fi
+ fi
-.PHONY: all-target-libiberty
+.PHONY: all-target-libiberty maybe-all-target-libiberty
+maybe-all-target-libiberty:
all-target-libiberty:
- @dir=libiberty ; \
- if [ -f $(TARGET_SUBDIR)/libiberty/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd $(TARGET_SUBDIR)/libiberty; \
- $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
.PHONY: check-target-libiberty
check-target-libiberty:
- @dir=libiberty ; \
- if [ -f $(TARGET_SUBDIR)/libiberty/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd $(TARGET_SUBDIR)/libiberty; \
- $(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
- else \
- true; \
- fi
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
-\
-.PHONY: install-target-libiberty
+
+.PHONY: install-target-libiberty maybe-install-target-libiberty
+maybe-install-target-libiberty:
install-target-libiberty: installdirs
- @dir=libiberty ; \
- if [ -f $(TARGET_SUBDIR)/libiberty/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd $(TARGET_SUBDIR)/libiberty; \
- $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
-.PHONY: configure-target-gperf
+.PHONY: configure-target-gperf maybe-configure-target-gperf
+maybe-configure-target-gperf:
configure-target-gperf:
- @if [ -d $(TARGET_SUBDIR)/gperf ]; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
$(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/gperf/tmpmulti.out 2> /dev/null; \
if [ -s $(TARGET_SUBDIR)/gperf/tmpmulti.out ]; then \
if [ -f $(TARGET_SUBDIR)/gperf/multilib.out ]; then \
else \
mv $(TARGET_SUBDIR)/gperf/tmpmulti.out $(TARGET_SUBDIR)/gperf/multilib.out; \
fi; \
- fi; \
fi; exit 0 # break command into two pieces
- @dir=gperf ; \
- if [ ! -d $(TARGET_SUBDIR) ]; then \
- true; \
- elif [ -f $(TARGET_SUBDIR)/gperf/Makefile ] ; then \
- true; \
- elif echo " $(TARGET_CONFIGDIRS) " | grep " gperf " >/dev/null 2>&1; then \
- if [ -d $(srcdir)/gperf ]; then \
+ @if [ -d $(srcdir)/gperf ]; then \
[ -d $(TARGET_SUBDIR)/gperf ] || mkdir $(TARGET_SUBDIR)/gperf;\
r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
srcdiroption="--srcdir=$${topdir}/gperf"; \
libsrcdir="$$s/gperf"; \
fi; \
- if [ -f $${libsrcdir}/configure ] ; then \
- rm -f no-such-file skip-this-dir; \
- CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
- $(TARGET_CONFIGARGS) $${srcdiroption} \
- --with-target-subdir="$(TARGET_SUBDIR)"; \
- else \
- rm -f no-such-file skip-this-dir; \
- CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
- $(TARGET_CONFIGARGS) $${srcdiroption} \
- --with-target-subdir="$(TARGET_SUBDIR)"; \
- fi || exit 1; \
- if [ -f skip-this-dir ] ; then \
- sh skip-this-dir; \
- rm -f skip-this-dir; \
- cd ..; rmdir gperf || true; \
- else \
- true; \
- fi; \
+ rm -f no-such-file || : ; \
+ CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
+ $(TARGET_CONFIGARGS) $${srcdiroption} \
+ --with-target-subdir="$(TARGET_SUBDIR)" \
+ || exit 1; \
else \
true; \
- fi; \
- else \
- true; \
- fi
+ fi
-.PHONY: all-target-gperf
+.PHONY: all-target-gperf maybe-all-target-gperf
+maybe-all-target-gperf:
all-target-gperf:
- @dir=gperf ; \
- if [ -f $(TARGET_SUBDIR)/gperf/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd $(TARGET_SUBDIR)/gperf; \
- $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
.PHONY: check-target-gperf
check-target-gperf:
- @dir=gperf ; \
- if [ -f $(TARGET_SUBDIR)/gperf/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd $(TARGET_SUBDIR)/gperf; \
- $(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
- else \
- true; \
- fi
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
-\
-.PHONY: install-target-gperf
+
+.PHONY: install-target-gperf maybe-install-target-gperf
+maybe-install-target-gperf:
install-target-gperf: installdirs
- @dir=gperf ; \
- if [ -f $(TARGET_SUBDIR)/gperf/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd $(TARGET_SUBDIR)/gperf; \
- $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
-.PHONY: configure-target-examples
+.PHONY: configure-target-examples maybe-configure-target-examples
+maybe-configure-target-examples:
configure-target-examples:
- @if [ -d $(TARGET_SUBDIR)/examples ]; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
$(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/examples/tmpmulti.out 2> /dev/null; \
if [ -s $(TARGET_SUBDIR)/examples/tmpmulti.out ]; then \
if [ -f $(TARGET_SUBDIR)/examples/multilib.out ]; then \
else \
mv $(TARGET_SUBDIR)/examples/tmpmulti.out $(TARGET_SUBDIR)/examples/multilib.out; \
fi; \
- fi; \
fi; exit 0 # break command into two pieces
- @dir=examples ; \
- if [ ! -d $(TARGET_SUBDIR) ]; then \
- true; \
- elif [ -f $(TARGET_SUBDIR)/examples/Makefile ] ; then \
- true; \
- elif echo " $(TARGET_CONFIGDIRS) " | grep " examples " >/dev/null 2>&1; then \
- if [ -d $(srcdir)/examples ]; then \
+ @if [ -d $(srcdir)/examples ]; then \
[ -d $(TARGET_SUBDIR)/examples ] || mkdir $(TARGET_SUBDIR)/examples;\
r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
srcdiroption="--srcdir=$${topdir}/examples"; \
libsrcdir="$$s/examples"; \
fi; \
- if [ -f $${libsrcdir}/configure ] ; then \
- rm -f no-such-file skip-this-dir; \
- CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
- $(TARGET_CONFIGARGS) $${srcdiroption} \
- --with-target-subdir="$(TARGET_SUBDIR)"; \
- else \
- rm -f no-such-file skip-this-dir; \
- CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
- $(TARGET_CONFIGARGS) $${srcdiroption} \
- --with-target-subdir="$(TARGET_SUBDIR)"; \
- fi || exit 1; \
- if [ -f skip-this-dir ] ; then \
- sh skip-this-dir; \
- rm -f skip-this-dir; \
- cd ..; rmdir examples || true; \
- else \
- true; \
- fi; \
+ rm -f no-such-file || : ; \
+ CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
+ $(TARGET_CONFIGARGS) $${srcdiroption} \
+ --with-target-subdir="$(TARGET_SUBDIR)" \
+ || exit 1; \
else \
true; \
- fi; \
- else \
- true; \
- fi
+ fi
-.PHONY: all-target-examples
+.PHONY: all-target-examples maybe-all-target-examples
+maybe-all-target-examples:
all-target-examples:
- @dir=examples ; \
- if [ -f $(TARGET_SUBDIR)/examples/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd $(TARGET_SUBDIR)/examples; \
- $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
# Dummy target for uncheckable module.
.PHONY: check-target-examples
check-target-examples:
+.PHONY: install-target-examples maybe-install-target-examples
+maybe-install-target-examples:
+# Dummy target for uninstallable.
+install-target-examples:
+
-.PHONY: configure-target-libffi
+.PHONY: configure-target-libffi maybe-configure-target-libffi
+maybe-configure-target-libffi:
configure-target-libffi:
- @if [ -d $(TARGET_SUBDIR)/libffi ]; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
$(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libffi/tmpmulti.out 2> /dev/null; \
if [ -s $(TARGET_SUBDIR)/libffi/tmpmulti.out ]; then \
if [ -f $(TARGET_SUBDIR)/libffi/multilib.out ]; then \
else \
mv $(TARGET_SUBDIR)/libffi/tmpmulti.out $(TARGET_SUBDIR)/libffi/multilib.out; \
fi; \
- fi; \
fi; exit 0 # break command into two pieces
- @dir=libffi ; \
- if [ ! -d $(TARGET_SUBDIR) ]; then \
- true; \
- elif [ -f $(TARGET_SUBDIR)/libffi/Makefile ] ; then \
- true; \
- elif echo " $(TARGET_CONFIGDIRS) " | grep " libffi " >/dev/null 2>&1; then \
- if [ -d $(srcdir)/libffi ]; then \
+ @if [ -d $(srcdir)/libffi ]; then \
[ -d $(TARGET_SUBDIR)/libffi ] || mkdir $(TARGET_SUBDIR)/libffi;\
r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
srcdiroption="--srcdir=$${topdir}/libffi"; \
libsrcdir="$$s/libffi"; \
fi; \
- if [ -f $${libsrcdir}/configure ] ; then \
- rm -f no-such-file skip-this-dir; \
- CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
- $(TARGET_CONFIGARGS) $${srcdiroption} \
- --with-target-subdir="$(TARGET_SUBDIR)"; \
- else \
- rm -f no-such-file skip-this-dir; \
- CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
- $(TARGET_CONFIGARGS) $${srcdiroption} \
- --with-target-subdir="$(TARGET_SUBDIR)"; \
- fi || exit 1; \
- if [ -f skip-this-dir ] ; then \
- sh skip-this-dir; \
- rm -f skip-this-dir; \
- cd ..; rmdir libffi || true; \
- else \
- true; \
- fi; \
+ rm -f no-such-file || : ; \
+ CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
+ $(TARGET_CONFIGARGS) $${srcdiroption} \
+ --with-target-subdir="$(TARGET_SUBDIR)" \
+ || exit 1; \
else \
true; \
- fi; \
- else \
- true; \
- fi
+ fi
-.PHONY: all-target-libffi
+.PHONY: all-target-libffi maybe-all-target-libffi
+maybe-all-target-libffi:
all-target-libffi:
- @dir=libffi ; \
- if [ -f $(TARGET_SUBDIR)/libffi/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd $(TARGET_SUBDIR)/libffi; \
- $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
.PHONY: check-target-libffi
check-target-libffi:
- @dir=libffi ; \
- if [ -f $(TARGET_SUBDIR)/libffi/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd $(TARGET_SUBDIR)/libffi; \
- $(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
- else \
- true; \
- fi
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
+.PHONY: install-target-libffi maybe-install-target-libffi
+maybe-install-target-libffi:
+# Dummy target for uninstallable.
+install-target-libffi:
-.PHONY: configure-target-libjava
+
+.PHONY: configure-target-libjava maybe-configure-target-libjava
+maybe-configure-target-libjava:
configure-target-libjava:
- @if [ -d $(TARGET_SUBDIR)/libjava ]; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
$(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libjava/tmpmulti.out 2> /dev/null; \
if [ -s $(TARGET_SUBDIR)/libjava/tmpmulti.out ]; then \
if [ -f $(TARGET_SUBDIR)/libjava/multilib.out ]; then \
else \
mv $(TARGET_SUBDIR)/libjava/tmpmulti.out $(TARGET_SUBDIR)/libjava/multilib.out; \
fi; \
- fi; \
fi; exit 0 # break command into two pieces
- @dir=libjava ; \
- if [ ! -d $(TARGET_SUBDIR) ]; then \
- true; \
- elif [ -f $(TARGET_SUBDIR)/libjava/Makefile ] ; then \
- true; \
- elif echo " $(TARGET_CONFIGDIRS) " | grep " libjava " >/dev/null 2>&1; then \
- if [ -d $(srcdir)/libjava ]; then \
+ @if [ -d $(srcdir)/libjava ]; then \
[ -d $(TARGET_SUBDIR)/libjava ] || mkdir $(TARGET_SUBDIR)/libjava;\
r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
AS="$(AS_FOR_TARGET)"; export AS; \
CC="$(CC_FOR_TARGET)"; export CC; \
CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
- CXX="$(CXX_FOR_TARGET)"; export CXX; \
+ CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
+ CXX="$(RAW_CXX_FOR_TARGET)"; export CXX; \
CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
srcdiroption="--srcdir=$${topdir}/libjava"; \
libsrcdir="$$s/libjava"; \
fi; \
- if [ -f $${libsrcdir}/configure ] ; then \
- rm -f no-such-file skip-this-dir; \
- CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
- $(TARGET_CONFIGARGS) $${srcdiroption} \
- --with-target-subdir="$(TARGET_SUBDIR)"; \
- else \
- rm -f no-such-file skip-this-dir; \
- CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
- $(TARGET_CONFIGARGS) $${srcdiroption} \
- --with-target-subdir="$(TARGET_SUBDIR)"; \
- fi || exit 1; \
- if [ -f skip-this-dir ] ; then \
- sh skip-this-dir; \
- rm -f skip-this-dir; \
- cd ..; rmdir libjava || true; \
- else \
- true; \
- fi; \
+ rm -f no-such-file || : ; \
+ CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
+ $(TARGET_CONFIGARGS) $${srcdiroption} \
+ --with-target-subdir="$(TARGET_SUBDIR)" \
+ || exit 1; \
else \
true; \
- fi; \
- else \
- true; \
- fi
+ fi
-.PHONY: all-target-libjava
+.PHONY: all-target-libjava maybe-all-target-libjava
+maybe-all-target-libjava:
all-target-libjava:
- @dir=libjava ; \
- if [ -f $(TARGET_SUBDIR)/libjava/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd $(TARGET_SUBDIR)/libjava; \
- $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' all)
.PHONY: check-target-libjava
check-target-libjava:
- @dir=libjava ; \
- if [ -f $(TARGET_SUBDIR)/libjava/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd $(TARGET_SUBDIR)/libjava; \
- $(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
- else \
- true; \
- fi
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
-\
-.PHONY: install-target-libjava
+
+.PHONY: install-target-libjava maybe-install-target-libjava
+maybe-install-target-libjava:
install-target-libjava: installdirs
- @dir=libjava ; \
- if [ -f $(TARGET_SUBDIR)/libjava/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd $(TARGET_SUBDIR)/libjava; \
- $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
-.PHONY: configure-target-zlib
+.PHONY: configure-target-zlib maybe-configure-target-zlib
+maybe-configure-target-zlib:
configure-target-zlib:
- @if [ -d $(TARGET_SUBDIR)/zlib ]; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
$(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/zlib/tmpmulti.out 2> /dev/null; \
if [ -s $(TARGET_SUBDIR)/zlib/tmpmulti.out ]; then \
if [ -f $(TARGET_SUBDIR)/zlib/multilib.out ]; then \
else \
mv $(TARGET_SUBDIR)/zlib/tmpmulti.out $(TARGET_SUBDIR)/zlib/multilib.out; \
fi; \
- fi; \
fi; exit 0 # break command into two pieces
- @dir=zlib ; \
- if [ ! -d $(TARGET_SUBDIR) ]; then \
- true; \
- elif [ -f $(TARGET_SUBDIR)/zlib/Makefile ] ; then \
- true; \
- elif echo " $(TARGET_CONFIGDIRS) " | grep " zlib " >/dev/null 2>&1; then \
- if [ -d $(srcdir)/zlib ]; then \
+ @if [ -d $(srcdir)/zlib ]; then \
[ -d $(TARGET_SUBDIR)/zlib ] || mkdir $(TARGET_SUBDIR)/zlib;\
r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
srcdiroption="--srcdir=$${topdir}/zlib"; \
libsrcdir="$$s/zlib"; \
fi; \
- if [ -f $${libsrcdir}/configure ] ; then \
- rm -f no-such-file skip-this-dir; \
- CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
- $(TARGET_CONFIGARGS) $${srcdiroption} \
- --with-target-subdir="$(TARGET_SUBDIR)"; \
- else \
- rm -f no-such-file skip-this-dir; \
- CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
- $(TARGET_CONFIGARGS) $${srcdiroption} \
- --with-target-subdir="$(TARGET_SUBDIR)"; \
- fi || exit 1; \
- if [ -f skip-this-dir ] ; then \
- sh skip-this-dir; \
- rm -f skip-this-dir; \
- cd ..; rmdir zlib || true; \
- else \
- true; \
- fi; \
+ rm -f no-such-file || : ; \
+ CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
+ $(TARGET_CONFIGARGS) $${srcdiroption} \
+ --with-target-subdir="$(TARGET_SUBDIR)" \
+ || exit 1; \
else \
true; \
- fi; \
- else \
- true; \
- fi
+ fi
-.PHONY: all-target-zlib
+.PHONY: all-target-zlib maybe-all-target-zlib
+maybe-all-target-zlib:
all-target-zlib:
- @dir=zlib ; \
- if [ -f $(TARGET_SUBDIR)/zlib/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd $(TARGET_SUBDIR)/zlib; \
- $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
.PHONY: check-target-zlib
check-target-zlib:
- @dir=zlib ; \
- if [ -f $(TARGET_SUBDIR)/zlib/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd $(TARGET_SUBDIR)/zlib; \
- $(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
- else \
- true; \
- fi
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
-\
-.PHONY: install-target-zlib
+
+.PHONY: install-target-zlib maybe-install-target-zlib
+maybe-install-target-zlib:
install-target-zlib: installdirs
- @dir=zlib ; \
- if [ -f $(TARGET_SUBDIR)/zlib/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd $(TARGET_SUBDIR)/zlib; \
- $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
-.PHONY: configure-target-boehm-gc
+.PHONY: configure-target-boehm-gc maybe-configure-target-boehm-gc
+maybe-configure-target-boehm-gc:
configure-target-boehm-gc:
- @if [ -d $(TARGET_SUBDIR)/boehm-gc ]; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
$(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/boehm-gc/tmpmulti.out 2> /dev/null; \
if [ -s $(TARGET_SUBDIR)/boehm-gc/tmpmulti.out ]; then \
if [ -f $(TARGET_SUBDIR)/boehm-gc/multilib.out ]; then \
else \
mv $(TARGET_SUBDIR)/boehm-gc/tmpmulti.out $(TARGET_SUBDIR)/boehm-gc/multilib.out; \
fi; \
- fi; \
fi; exit 0 # break command into two pieces
- @dir=boehm-gc ; \
- if [ ! -d $(TARGET_SUBDIR) ]; then \
- true; \
- elif [ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] ; then \
- true; \
- elif echo " $(TARGET_CONFIGDIRS) " | grep " boehm-gc " >/dev/null 2>&1; then \
- if [ -d $(srcdir)/boehm-gc ]; then \
+ @if [ -d $(srcdir)/boehm-gc ]; then \
[ -d $(TARGET_SUBDIR)/boehm-gc ] || mkdir $(TARGET_SUBDIR)/boehm-gc;\
r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
srcdiroption="--srcdir=$${topdir}/boehm-gc"; \
libsrcdir="$$s/boehm-gc"; \
fi; \
- if [ -f $${libsrcdir}/configure ] ; then \
- rm -f no-such-file skip-this-dir; \
- CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
- $(TARGET_CONFIGARGS) $${srcdiroption} \
- --with-target-subdir="$(TARGET_SUBDIR)"; \
- else \
- rm -f no-such-file skip-this-dir; \
- CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
- $(TARGET_CONFIGARGS) $${srcdiroption} \
- --with-target-subdir="$(TARGET_SUBDIR)"; \
- fi || exit 1; \
- if [ -f skip-this-dir ] ; then \
- sh skip-this-dir; \
- rm -f skip-this-dir; \
- cd ..; rmdir boehm-gc || true; \
- else \
- true; \
- fi; \
+ rm -f no-such-file || : ; \
+ CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
+ $(TARGET_CONFIGARGS) $${srcdiroption} \
+ --with-target-subdir="$(TARGET_SUBDIR)" \
+ || exit 1; \
else \
true; \
- fi; \
- else \
- true; \
- fi
+ fi
-.PHONY: all-target-boehm-gc
+.PHONY: all-target-boehm-gc maybe-all-target-boehm-gc
+maybe-all-target-boehm-gc:
all-target-boehm-gc:
- @dir=boehm-gc ; \
- if [ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd $(TARGET_SUBDIR)/boehm-gc; \
- $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
.PHONY: check-target-boehm-gc
check-target-boehm-gc:
- @dir=boehm-gc ; \
- if [ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd $(TARGET_SUBDIR)/boehm-gc; \
- $(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
- else \
- true; \
- fi
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
-\
-.PHONY: install-target-boehm-gc
+
+.PHONY: install-target-boehm-gc maybe-install-target-boehm-gc
+maybe-install-target-boehm-gc:
install-target-boehm-gc: installdirs
- @dir=boehm-gc ; \
- if [ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd $(TARGET_SUBDIR)/boehm-gc; \
- $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
-.PHONY: configure-target-qthreads
+.PHONY: configure-target-qthreads maybe-configure-target-qthreads
+maybe-configure-target-qthreads:
configure-target-qthreads:
- @if [ -d $(TARGET_SUBDIR)/qthreads ]; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
$(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/qthreads/tmpmulti.out 2> /dev/null; \
if [ -s $(TARGET_SUBDIR)/qthreads/tmpmulti.out ]; then \
if [ -f $(TARGET_SUBDIR)/qthreads/multilib.out ]; then \
else \
mv $(TARGET_SUBDIR)/qthreads/tmpmulti.out $(TARGET_SUBDIR)/qthreads/multilib.out; \
fi; \
- fi; \
fi; exit 0 # break command into two pieces
- @dir=qthreads ; \
- if [ ! -d $(TARGET_SUBDIR) ]; then \
- true; \
- elif [ -f $(TARGET_SUBDIR)/qthreads/Makefile ] ; then \
- true; \
- elif echo " $(TARGET_CONFIGDIRS) " | grep " qthreads " >/dev/null 2>&1; then \
- if [ -d $(srcdir)/qthreads ]; then \
+ @if [ -d $(srcdir)/qthreads ]; then \
[ -d $(TARGET_SUBDIR)/qthreads ] || mkdir $(TARGET_SUBDIR)/qthreads;\
r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
srcdiroption="--srcdir=$${topdir}/qthreads"; \
libsrcdir="$$s/qthreads"; \
fi; \
- if [ -f $${libsrcdir}/configure ] ; then \
- rm -f no-such-file skip-this-dir; \
- CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
- $(TARGET_CONFIGARGS) $${srcdiroption} \
- --with-target-subdir="$(TARGET_SUBDIR)"; \
- else \
- rm -f no-such-file skip-this-dir; \
- CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
- $(TARGET_CONFIGARGS) $${srcdiroption} \
- --with-target-subdir="$(TARGET_SUBDIR)"; \
- fi || exit 1; \
- if [ -f skip-this-dir ] ; then \
- sh skip-this-dir; \
- rm -f skip-this-dir; \
- cd ..; rmdir qthreads || true; \
- else \
- true; \
- fi; \
+ rm -f no-such-file || : ; \
+ CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
+ $(TARGET_CONFIGARGS) $${srcdiroption} \
+ --with-target-subdir="$(TARGET_SUBDIR)" \
+ || exit 1; \
else \
true; \
- fi; \
- else \
- true; \
- fi
+ fi
-.PHONY: all-target-qthreads
+.PHONY: all-target-qthreads maybe-all-target-qthreads
+maybe-all-target-qthreads:
all-target-qthreads:
- @dir=qthreads ; \
- if [ -f $(TARGET_SUBDIR)/qthreads/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd $(TARGET_SUBDIR)/qthreads; \
- $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
.PHONY: check-target-qthreads
check-target-qthreads:
- @dir=qthreads ; \
- if [ -f $(TARGET_SUBDIR)/qthreads/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd $(TARGET_SUBDIR)/qthreads; \
- $(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
- else \
- true; \
- fi
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
-\
-.PHONY: install-target-qthreads
+
+.PHONY: install-target-qthreads maybe-install-target-qthreads
+maybe-install-target-qthreads:
install-target-qthreads: installdirs
- @dir=qthreads ; \
- if [ -f $(TARGET_SUBDIR)/qthreads/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd $(TARGET_SUBDIR)/qthreads; \
- $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
-.PHONY: configure-target-rda
+.PHONY: configure-target-rda maybe-configure-target-rda
+maybe-configure-target-rda:
configure-target-rda:
- @if [ -d $(TARGET_SUBDIR)/rda ]; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
$(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/rda/tmpmulti.out 2> /dev/null; \
if [ -s $(TARGET_SUBDIR)/rda/tmpmulti.out ]; then \
if [ -f $(TARGET_SUBDIR)/rda/multilib.out ]; then \
else \
mv $(TARGET_SUBDIR)/rda/tmpmulti.out $(TARGET_SUBDIR)/rda/multilib.out; \
fi; \
- fi; \
fi; exit 0 # break command into two pieces
- @dir=rda ; \
- if [ ! -d $(TARGET_SUBDIR) ]; then \
- true; \
- elif [ -f $(TARGET_SUBDIR)/rda/Makefile ] ; then \
- true; \
- elif echo " $(TARGET_CONFIGDIRS) " | grep " rda " >/dev/null 2>&1; then \
- if [ -d $(srcdir)/rda ]; then \
+ @if [ -d $(srcdir)/rda ]; then \
[ -d $(TARGET_SUBDIR)/rda ] || mkdir $(TARGET_SUBDIR)/rda;\
r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
srcdiroption="--srcdir=$${topdir}/rda"; \
libsrcdir="$$s/rda"; \
fi; \
- if [ -f $${libsrcdir}/configure ] ; then \
- rm -f no-such-file skip-this-dir; \
- CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
- $(TARGET_CONFIGARGS) $${srcdiroption} \
- --with-target-subdir="$(TARGET_SUBDIR)"; \
- else \
- rm -f no-such-file skip-this-dir; \
- CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
- $(TARGET_CONFIGARGS) $${srcdiroption} \
- --with-target-subdir="$(TARGET_SUBDIR)"; \
- fi || exit 1; \
- if [ -f skip-this-dir ] ; then \
- sh skip-this-dir; \
- rm -f skip-this-dir; \
- cd ..; rmdir rda || true; \
- else \
- true; \
- fi; \
+ rm -f no-such-file || : ; \
+ CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
+ $(TARGET_CONFIGARGS) $${srcdiroption} \
+ --with-target-subdir="$(TARGET_SUBDIR)" \
+ || exit 1; \
else \
true; \
- fi; \
- else \
- true; \
- fi
+ fi
-.PHONY: all-target-rda
+.PHONY: all-target-rda maybe-all-target-rda
+maybe-all-target-rda:
all-target-rda:
- @dir=rda ; \
- if [ -f $(TARGET_SUBDIR)/rda/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd $(TARGET_SUBDIR)/rda; \
- $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
- else \
- true; \
- fi
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
.PHONY: check-target-rda
check-target-rda:
- @dir=rda ; \
- if [ -f $(TARGET_SUBDIR)/rda/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd $(TARGET_SUBDIR)/rda; \
- $(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
- else \
- true; \
- fi
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
-\
-.PHONY: install-target-rda
+
+.PHONY: install-target-rda maybe-install-target-rda
+maybe-install-target-rda:
install-target-rda: installdirs
- @dir=rda ; \
- if [ -f $(TARGET_SUBDIR)/rda/Makefile ] ; then \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd $(TARGET_SUBDIR)/rda; \
- $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
- else \
- true; \
- fi
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
# gcc is the only module which uses GCC_FLAGS_TO_PASS.
-.PHONY: all-gcc
+.PHONY: all-gcc maybe-all-gcc
+maybe-all-gcc:
all-gcc:
@if [ -f ./gcc/Makefile ] ; then \
r=`${PWD}`; export r; \
true; \
fi
-.PHONY: install-gcc
+.PHONY: install-gcc maybe-install-gcc
+maybe-install-gcc:
install-gcc:
@if [ -f ./gcc/Makefile ] ; then \
r=`${PWD}`; export r; \
true; \
fi
-ALL_GCC = all-gcc
-ALL_GCC_C = $(ALL_GCC) all-target-newlib all-target-libgloss
-ALL_GCC_CXX = $(ALL_GCC_C) all-target-libstdc++-v3
+ALL_GCC = maybe-all-gcc
+ALL_GCC_C = $(ALL_GCC) maybe-all-target-newlib maybe-all-target-libgloss
+ALL_GCC_CXX = $(ALL_GCC_C) maybe-all-target-libstdc++-v3
# This is a list of inter-dependencies among modules.
-all-autoconf: all-m4 all-texinfo
-all-automake: all-m4 all-texinfo
-all-bfd: all-libiberty all-intl
-all-binutils: all-libiberty all-opcodes all-bfd all-flex all-bison all-byacc all-intl
-all-bison: all-texinfo
-configure-target-boehm-gc: $(ALL_GCC_C) configure-target-qthreads
-all-dejagnu: all-tcl all-expect all-tk
-all-diff: all-libiberty
+all-autoconf: maybe-all-m4 maybe-all-texinfo
+all-automake: maybe-all-m4 maybe-all-texinfo
+all-bfd: maybe-all-libiberty maybe-all-intl
+all-binutils: maybe-all-libiberty maybe-all-opcodes maybe-all-bfd maybe-all-flex maybe-all-bison maybe-all-byacc maybe-all-intl
+all-bison: maybe-all-texinfo
+configure-target-boehm-gc: $(ALL_GCC_C) maybe-configure-target-qthreads
+all-dejagnu: maybe-all-tcl maybe-all-expect maybe-all-tk
+all-diff: maybe-all-libiberty
configure-target-examples: $(ALL_GCC_C)
-all-expect: all-tcl all-tk
-all-fileutils: all-libiberty
-all-flex: all-libiberty all-bison all-byacc
-all-gas: all-libiberty all-opcodes all-bfd all-intl
-all-gcc: all-libiberty all-bison all-byacc all-binutils all-gas all-ld all-zlib
-all-bootstrap: all-libiberty all-texinfo all-bison all-byacc all-binutils all-gas all-ld all-zlib
+all-expect: maybe-all-tcl maybe-all-tk
+all-fileutils: maybe-all-libiberty
+all-flex: maybe-all-libiberty maybe-all-bison maybe-all-byacc
+all-gas: maybe-all-libiberty maybe-all-opcodes maybe-all-bfd maybe-all-intl
+all-gcc: maybe-all-libiberty maybe-all-bison maybe-all-byacc maybe-all-binutils maybe-all-gas maybe-all-ld maybe-all-zlib
+all-bootstrap: maybe-all-libiberty maybe-all-texinfo maybe-all-bison maybe-all-byacc maybe-all-binutils maybe-all-gas maybe-all-ld maybe-all-zlib
GDB_TK = @GDB_TK@
-all-gdb: all-libiberty all-opcodes all-bfd all-mmalloc all-readline all-bison all-byacc all-sim $(gdbnlmrequirements) $(GDB_TK)
+all-gdb: maybe-all-libiberty maybe-all-opcodes maybe-all-bfd maybe-all-mmalloc maybe-all-readline maybe-all-bison maybe-all-byacc maybe-all-sim $(gdbnlmrequirements) $(GDB_TK)
configure-target-gperf: $(ALL_GCC_CXX)
-all-target-gperf: all-target-libiberty all-target-libstdc++-v3
-all-gprof: all-libiberty all-bfd all-opcodes all-intl
-all-grep: all-libiberty
-all-gzip: all-libiberty
-all-hello: all-libiberty
-all-itcl: all-tcl all-tk
-all-ld: all-libiberty all-bfd all-opcodes all-bison all-byacc all-flex all-intl
+all-target-gperf: maybe-all-target-libiberty maybe-all-target-libstdc++-v3
+all-gprof: maybe-all-libiberty maybe-all-bfd maybe-all-opcodes maybe-all-intl
+all-grep: maybe-all-libiberty
+all-gzip: maybe-all-libiberty
+all-hello: maybe-all-libiberty
+all-itcl: maybe-all-tcl maybe-all-tk
+all-ld: maybe-all-libiberty maybe-all-bfd maybe-all-opcodes maybe-all-bison maybe-all-byacc maybe-all-flex maybe-all-intl
configure-target-libgloss: $(ALL_GCC)
-all-target-libgloss: configure-target-newlib
-all-libgui: all-tcl all-tk all-itcl
+all-target-libgloss: maybe-configure-target-newlib
+all-libgui: maybe-all-tcl maybe-all-tk maybe-all-itcl
configure-target-libffi: $(ALL_GCC_C)
-configure-target-libjava: $(ALL_GCC_C) configure-target-zlib configure-target-boehm-gc configure-target-qthreads configure-target-libffi
-all-target-libjava: all-fastjar all-target-zlib all-target-boehm-gc all-target-qthreads all-target-libffi
+configure-target-libjava: $(ALL_GCC_C) maybe-configure-target-zlib maybe-configure-target-boehm-gc maybe-configure-target-qthreads maybe-configure-target-libffi
+all-target-libjava: maybe-all-fastjar maybe-all-target-zlib maybe-all-target-boehm-gc maybe-all-target-qthreads maybe-all-target-libffi
configure-target-libstdc++-v3: $(ALL_GCC_C)
-all-target-libstdc++-v3: all-target-libiberty
+all-target-libstdc++-v3: maybe-all-target-libiberty
configure-target-libf2c: $(ALL_GCC_C)
-all-target-libf2c: all-target-libiberty
+all-target-libf2c: maybe-all-target-libiberty
configure-target-libobjc: $(ALL_GCC_C)
-all-target-libobjc: all-target-libiberty
-all-m4: all-libiberty all-texinfo
-all-make: all-libiberty
+all-target-libobjc: maybe-all-target-libiberty
+all-m4: maybe-all-libiberty maybe-all-texinfo
+all-make: maybe-all-libiberty
configure-target-newlib: $(ALL_GCC)
configure-target-libtermcap: $(ALL_GCC_C)
-all-opcodes: all-bfd all-libiberty
-all-patch: all-libiberty
-all-prms: all-libiberty
+all-opcodes: maybe-all-bfd maybe-all-libiberty
+all-patch: maybe-all-libiberty
+all-prms: maybe-all-libiberty
configure-target-qthreads: $(ALL_GCC_C)
-all-recode: all-libiberty
-all-sed: all-libiberty
-all-send-pr: all-prms
-all-sid: all-tcl all-tk
-all-sim: all-libiberty all-bfd all-opcodes all-readline
-all-snavigator: all-tcl all-tk all-itcl all-tix all-db all-grep all-libgui
-all-tar: all-libiberty
-all-tclX: all-tcl all-tk
-all-tk: all-tcl
-all-texinfo: all-libiberty
-all-tix: all-tcl all-tk
+all-recode: maybe-all-libiberty
+all-sed: maybe-all-libiberty
+all-send-pr: maybe-all-prms
+all-sid: maybe-all-tcl maybe-all-tk
+all-sim: maybe-all-libiberty maybe-all-bfd maybe-all-opcodes maybe-all-readline
+all-snavigator: maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-tix maybe-all-db maybe-all-grep maybe-all-libgui
+all-tar: maybe-all-libiberty
+all-tclX: maybe-all-tcl maybe-all-tk
+all-tk: maybe-all-tcl
+all-texinfo: maybe-all-libiberty
+all-tix: maybe-all-tcl maybe-all-tk
configure-target-winsup: $(ALL_GCC_C)
-all-target-winsup: all-target-libiberty all-target-libtermcap
-all-uudecode: all-libiberty
+all-target-winsup: maybe-all-target-libiberty maybe-all-target-libtermcap
+all-uudecode: maybe-all-libiberty
configure-target-zlib: $(ALL_GCC_C)
-all-fastjar: all-zlib all-libiberty
-configure-target-fastjar: configure-target-zlib
-all-target-fastjar: all-target-zlib all-target-libiberty
+all-fastjar: maybe-all-zlib maybe-all-libiberty
+configure-target-fastjar: maybe-configure-target-zlib
+all-target-fastjar: maybe-all-target-zlib maybe-all-target-libiberty
configure-target-libiberty: $(ALL_GCC_C)
-install-gdb: install-tcl install-tk install-itcl install-tix install-libgui
-install-sid: install-tcl install-tk
+install-gdb: maybe-install-tcl maybe-install-tk maybe-install-itcl maybe-install-tix maybe-install-libgui
+install-sid: maybe-install-tcl maybe-install-tk
# We put install-opcodes before install-binutils because the installed
# binutils might be on PATH, and they might need the shared opcodes
# library.
-install-binutils: install-opcodes
+install-binutils: maybe-install-opcodes
# We put install-tcl before install-itcl because itcl wants to run a
# program on installation which uses the Tcl libraries.
-install-itcl: install-tcl
+install-itcl: maybe-install-tcl
# This is a slightly kludgy method of getting dependencies on
# all-build-libiberty correct; it would be better to build it every time.
-all-gcc: @all_build_modules@
+all-gcc: maybe-all-build-libiberty
# Dependencies of all-build-foo on configure-build-foo.
all-build-libiberty: configure-build-libiberty
+
# Dependencies of all-target-foo on configure-target-foo.
all-target-libstdc++-v3: configure-target-libstdc++-v3
all-target-newlib: configure-target-newlib
all-target-rda: configure-target-rda
+# Dependencies of maybe-foo on foo. These are used because, for example,
+# all-gcc only depends on all-gas if gas is present and being configured.
+@maybe_dependencies@
+
### other supporting targets
MAKEDIRS= \