From 929aea14b076f13d37dfda390a3294e81b8aa871 Mon Sep 17 00:00:00 2001 From: ehouse Date: Wed, 27 Jan 2010 05:45:56 +0000 Subject: [PATCH] fix to work when ENV var isn't set too --- xwords4/wince/Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/xwords4/wince/Makefile b/xwords4/wince/Makefile index 4cdadd9ab..bbb4f5412 100644 --- a/xwords4/wince/Makefile +++ b/xwords4/wince/Makefile @@ -278,13 +278,16 @@ 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 SHIP: $(TARGET)