Reorganize build rules.
[yuu.git] / rules / node-webkit.mk
index dd46e17..08c2b43 100644 (file)
@@ -93,7 +93,9 @@ endef
        $(call node-webkit-package-win,$<,$(word 2,$^))
 
 $(node-webkit-directx):
-       wget -O $@ 'https://github.com/cefsharp/cef-binary/raw/1e51255cf77d267899bf7834768b8774affaad2d/cef_binary_3.y.z_windows32/Release/'$(notdir $@)
+       mkdir -p $(@D)
+       wget -O $@ 'https://github.com/cefsharp/cef-binary/raw/1e51255cf77d267899bf7834768b8774affaad2d/cef_binary_3.y.z_windows32/Release/'$(@F)
 
 $(node-webkit-prefix)dxwebsetup.exe:
+       mkdir -p $(@D)
        wget -O $@ http://download.microsoft.com/download/1/7/1/1718CCC4-6315-4D8E-9543-8E28A4E18C4C/dxwebsetup.exe