Donn Terry <[EMAIL PROTECTED]>:
> SUBDIR_FLAGS_TO_PASS = $(ORDINARY_FLAGS_TO_PASS) \
>         "CC=$$(echo @cc_set_by_configure@ |
> $(PREPEND_DOTDOT_TO_RELATIVE_PATHS) )"

oh, I see.  you didn't mention @cc_set_by_configure@ in your
original example.  ok.  hmm...

this is ugly, but seems to work, and I don't recommend it.
but at the moment I can't think of another solution without
major restructuring.

        cc_0=`echo "$(CC)" | sed -e 's/^/cc0:/'`
        # or this:
        #cc_0=testing

        PREPEND=sed -e 's/^/pre:/'
        FLAGS=  "cc_1=$(cc_0)"                          \
                "CC=\`echo \$$(cc_1) | $(PREPEND)\`"
        first:
                make $(FLAGS) next
        next:
                echo "$(CC)"
--

Reply via email to