#!/usr/bin/make -f
-node-webkit-version := 0.10.4
-
-.DELETE_ON_ERROR:
-include rules/programs.mk
-include rules/javascript.mk
-include rules/icons.mk
-include rules/git.mk
-include rules/node-webkit.mk
-include rules/pngcrush.mk
-
-.PHONY: all check distclean lint test dist clean serve
-
APPLICATION := yuu
DISTDIR := build/dist
VERSION := $(call git-describe)
DISTROOT := $(DISTDIR)/$(APPLICATION)_$(VERSION)
+node-webkit-version := 0.10.4
FIND_FILES := -type f ! -name '.*'
FIND_JS := -type f -name '*.js'
HTTP_SERVER_PORT ?= 8000
-all: check $(BUILT) $(call pngcrush-stampify,$(IMAGES))
+all: $(BUILT) $(call pngcrush-stampify,$(IMAGES))
$(DISTDIR):
mkdir -p $@
tools/generate-nw $@.tmp `echo $(*F) | sed -E 's/.+_[^0-9]+//'`
cd $@.tmp && $(ZIP) -r ../$(@F) .
$(RM) -r $@.tmp
+
+include rules/programs.mk
+include rules/javascript.mk
+include rules/icons.mk
+include rules/git.mk
+include rules/node-webkit.mk
+include rules/pngcrush.mk
+
+.DELETE_ON_ERROR:
+.PHONY: all check distclean lint test dist clean serve
$(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