Improve Solaris compatibility of hal-probe-vmmouse generation rule

Use $(SED) from AC_PROG_SED to ensure a good version of sed is found
Use explicit input file name instead of $< to workaround Solaris make
issue with $< in explicit rules.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
This commit is contained in:
Alan Coopersmith
2010-07-09 20:45:53 -07:00
parent d7700bed84
commit 61608b87c0

View File

@@ -29,9 +29,9 @@ calloutsdir=$(HAL_CALLOUTS_DIR)
callouts_SCRIPTS = hal-probe-vmmouse
hal-probe-vmmouse: hal-probe-vmmouse.in
sed -e 's|__BIN_PREFIX__|$(bindir)|g' \
$(AM_V_GEN)$(SED) -e 's|__BIN_PREFIX__|$(bindir)|g' \
-e 's|__HAL_BIN_PREFIX__|$(HAL_BIN_DIR)|g' \
< $< > $@
< hal-probe-vmmouse.in > $@
EXTRA_DIST = hal-probe-vmmouse.in