libusb/Makefile.am: Avoid recursive variables in .rc silent-rule
authorPeter Stuge <peter@stuge.se>
Thu, 12 Jan 2012 09:34:55 +0000 (10:34 +0100)
committerPeter Stuge <peter@stuge.se>
Thu, 12 Jan 2012 09:34:55 +0000 (10:34 +0100)
Not every make supports recursive variable expansion so some automake
versions complain about non-POSIX variable names ever since commit
70bec4a9f8ec28d36c731011fa24d37c74ad3523 which added support for
silent-rules in our rule to compile the Windows .rc file.

This commit removes the recursive variables and instead uses the
simple and generic GEN message and associated variable.

libusb/Makefile.am

index 5152c38..c009376 100644 (file)
@@ -19,12 +19,8 @@ endif
 if OS_WINDOWS
 OS_SRC = $(WINDOWS_USB_SRC)
 
-pkg_v_rc = $(pkg_v_rc_$(V))
-pkg_v_rc_ = $(pkg_v_rc_$(AM_DEFAULT_VERBOSITY))
-pkg_v_rc_0 = @echo "  RC     $@";
-
 .rc.lo:
-       $(pkg_v_rc)$(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --tag=RC --mode=compile $(RC) $(RCFLAGS) -i $< -o $@
+       $(AM_V_GEN)$(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --tag=RC --mode=compile $(RC) $(RCFLAGS) -i $< -o $@
 
 libusb-1.0.rc: version.h
 endif