Hi Werner,
> > > > OPTS_WITH_ARG=`echo $OPTS \
> > > > | sed "s/[$OPTS_NO_ARG:]//g"`
...
> > Moreover I could not use `` in GNU make. But $(shell ...) cou;d be
> > used instead.
>
> Backticks do work in Makefiles. What's the problem?
Could it be that Bernd thinks your shell variable assignments, intended
for command lines of a target where the shell will handle the backticks,
are make variable assignments?
$ cat makefile
#! /usr/bin/make -f
BAR = 3.14
foo::
xyzzy="$$USER $(BAR)" && \
echo $(BAR) `expr 6 \* 7` $$TERM $$xyzzy
$
$ ./makefile
xyzzy="$USER 3.14" && \
echo 3.14 `expr 6 \* 7` $TERM $xyzzy
3.14 42 xterm ralph 3.14
$
Cheers, Ralph.