Windows/automake.mk: Use more portable code
[pspp] / Windows / automake.mk
index 918c0b179fe9b74b0516b3bc7779f62885f519b1..8c362caf0d48899557e70209dad606f25273b011 100644 (file)
@@ -23,8 +23,8 @@ nsis_installer_deps=$(DESTDIR)$(prefix)/share/doc/pspp/pspp.html \
        $(DESTDIR)$(prefix)/share/doc/pspp/pspp.pdf \
        Windows/AdvUninstLog.nsh Windows/MUI_EXTRAPAGES.nsh
 
-environment_dir=${shell echo $(LDFLAGS) | sed -e 's/^-L//' -e 's|/lib$$||'}
-libgcc_dir=${dir ${shell $(CC) -print-libgcc-file-name}}
+environment_dir = $$(echo $(LDFLAGS) | $(SED) -e 's/^-L//' -e 's|/lib$$||')
+libgcc_dir = $$(dirname $$($(CC) -print-libgcc-file-name))
 
 # Note that install is a PHONY target.  Therefore this rule is always executed.
 Windows/nsis-bin: install