[444] | 1 | PWD_COMMAND=$${PWDCMD-pwd} |
---|
| 2 | |
---|
| 3 | # FIXME: There should be an @-sign in front of the `if'. |
---|
| 4 | # Leave out until this is tested a bit more. |
---|
| 5 | multi-do: |
---|
| 6 | if [ -z "$(MULTIDIRS)" ]; then \ |
---|
| 7 | true; \ |
---|
| 8 | else \ |
---|
| 9 | rootpre=`${PWD_COMMAND}`/; export rootpre; \ |
---|
| 10 | srcrootpre=`cd $(srcdir); ${PWD_COMMAND}`/; export srcrootpre; \ |
---|
| 11 | lib=`echo "$${rootpre}" | sed -e 's,^.*/\([^/][^/]*\)/$$,\1,'`; export lib; \ |
---|
| 12 | compiler="$(CC)"; \ |
---|
| 13 | for dir in $(MULTIDIRS); do \ |
---|
| 14 | if [ "$${dir}" = "." ]; then \ |
---|
| 15 | true; \ |
---|
| 16 | else \ |
---|
| 17 | destpre=`echo $${rootpre}/$${dir}`/; export destpre; \ |
---|
| 18 | if ! test -d $${destpre} ; then \ |
---|
| 19 | mkdir -p $${destpre}; \ |
---|
| 20 | cd $${destpre}; \ |
---|
| 21 | config_cmd=`../config.status --config | sed -re "s:--srcdir=([^/]):--srcdir=../\1:"`; \ |
---|
| 22 | $(SHELL) -c "$(SHELL) $${srcrootpre}/configure $${config_cmd}";\ |
---|
| 23 | sed -e "s:^MULTIDIRS[[:space:]]*+=.*$$:MULTIDIRS = :" \ |
---|
| 24 | -e "s:^MULTILIBNAME[[:space:]]*=.*$$:MULTILIBNAME = MULTIDIR_$${dir}_NAME:" \ |
---|
| 25 | -e "s:^MULTI_FLAGS_FOR_TARGET[[:space:]]*=.*$$:MULTI_FLAGS_FOR_TARGET = MULTIDIR_$${dir}_FLAGS:" \ |
---|
| 26 | -e "s:^objdir[[:space:]]*=.*$$:objdir = ..:" \ |
---|
| 27 | Makefile > Makefile.tem; \ |
---|
| 28 | rm -f Makefile; \ |
---|
| 29 | mv Makefile.tem Makefile; \ |
---|
| 30 | else \ |
---|
| 31 | cd $${destpre}; \ |
---|
| 32 | fi; \ |
---|
| 33 | if ($(MAKE) $(FLAGS_TO_PASS) \ |
---|
| 34 | CFLAGS="$(CFLAGS)" \ |
---|
| 35 | CCASFLAGS="$(CCASFLAGS)" \ |
---|
| 36 | FCFLAGS="$(FCFLAGS)" \ |
---|
| 37 | FFLAGS="$(FFLAGS)" \ |
---|
| 38 | ADAFLAGS="$(ADAFLAGS)" \ |
---|
| 39 | prefix="$(prefix)" \ |
---|
| 40 | exec_prefix="$(exec_prefix)" \ |
---|
| 41 | GCJFLAGS="$(GCJFLAGS)" \ |
---|
| 42 | GOCFLAGS="$(GOCFLAGS)" \ |
---|
| 43 | CXXFLAGS="$(CXXFLAGS)" \ |
---|
| 44 | LIBCFLAGS="$(LIBCFLAGS)" \ |
---|
| 45 | LIBCXXFLAGS="$(LIBCXXFLAGS)" \ |
---|
| 46 | LDFLAGS="$(LDFLAGS)" \ |
---|
| 47 | MULTIFLAGS="" \ |
---|
| 48 | DESTDIR="$(DESTDIR)" \ |
---|
| 49 | SOURCE="${srcdir}/" \ |
---|
| 50 | INSTALL="$(INSTALL)" \ |
---|
| 51 | INSTALL_DATA="$(INSTALL_DATA)" \ |
---|
| 52 | INSTALL_PROGRAM="$(INSTALL_PROGRAM)" \ |
---|
| 53 | INSTALL_SCRIPT="$(INSTALL_SCRIPT)" \ |
---|
| 54 | $(DO)); then \ |
---|
| 55 | cd $${rootpre}; \ |
---|
| 56 | else \ |
---|
| 57 | exit 1; \ |
---|
| 58 | fi; \ |
---|
| 59 | fi; \ |
---|
| 60 | done; \ |
---|
| 61 | fi |
---|