fix to work when ENV var isn't set too

This commit is contained in:
ehouse 2010-01-27 05:45:56 +00:00
parent 96a7139e67
commit 929aea14b0

View file

@ -278,12 +278,15 @@ CAB: $(TARGET) $(DLLS)
$(STRIP) $<
(cd $(BUILTDIR); \
PATH=../../scripts:$$PATH exe2cab.pl $(notdir $<); \
[ -n "$$XW_WWW_PATH" ] && cp $(subst exe,cab,$(notdir $<)) \
$$XW_WWW_PATH \
if test -n "$$XW_WWW_PATH"; then \
cp $(subst exe,cab,$(notdir $<)) "$$XW_WWW_PATH"; \
fi \
)
for DLL in $(notdir $(DLLS)); do \
(cd $(BUILTDIR); PATH=../../scripts:$$PATH dll2cab.pl $$DLL; \
[ -n "$$XW_WWW_PATH" ] && cp $$DLL $$XW_WWW_PATH; \
if test -n "$$XW_WWW_PATH"; then \
cp $$DLL "$$XW_WWW_PATH"; \
fi \
); \
done