projects
/
pwl6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Migrate from node-webkit to NW.js.
[pwl6.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
3753998
..
f2d4697
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,13
+1,15
@@
#!/usr/bin/make -f
#!/usr/bin/make -f
-node-webkit-version := 0.10.4
+nwjs-version := 0.12.0
+all:
+print-%: ; @echo $*=$($*)
.DELETE_ON_ERROR:
include rules/programs.mk
include rules/javascript.mk
include rules/icons.mk
include rules/git.mk
.DELETE_ON_ERROR:
include rules/programs.mk
include rules/javascript.mk
include rules/icons.mk
include rules/git.mk
-include rules/n
ode-webkit
.mk
+include rules/n
wjs
.mk
include rules/pngcrush.mk
.PHONY: all check distclean lint test dist clean serve
include rules/pngcrush.mk
.PHONY: all check distclean lint test dist clean serve
@@
-15,7
+17,7
@@
include rules/pngcrush.mk
APPLICATION := pwl6
DISTDIR := build/dist
VERSION := $(call git-describe)
APPLICATION := pwl6
DISTDIR := build/dist
VERSION := $(call git-describe)
-DISTROOT := $(DISTDIR)/$(APPLICATION)
-
$(VERSION)
+DISTROOT := $(DISTDIR)/$(APPLICATION)
_
$(VERSION)
FIND_FILES := -type f ! -name '.*'
FIND_JS := -type f -name '*.js'
FIND_FILES := -type f ! -name '.*'
FIND_JS := -type f -name '*.js'
@@
-69,7
+71,7
@@
clean:
distclean: clean
$(RM) -r node_modules
distclean: clean
$(RM) -r node_modules
- $(RM) $(n
ode-webkit
-archives)
+ $(RM) $(n
wjs
-archives)
$(DISTROOT)-src.zip $(DISTROOT)-src.tar.gz: | .git
mkdir -p $(@D)
$(DISTROOT)-src.zip $(DISTROOT)-src.tar.gz: | .git
mkdir -p $(@D)
@@
-91,11
+93,11
@@
$(DISTROOT).bare.zip: | .git
tools/generate-appcache $@.tmp
mv $@.tmp $@
tools/generate-appcache $@.tmp
mv $@.tmp $@
-# Python's zipfile module generates zipfiles that
node-webkit cannot
-#
read,
so delegate to a real zip tool.
+# Python's zipfile module generates zipfiles that
NW.js cannot read,
+# so delegate to a real zip tool.
%.nw: %.bare.zip tools/generate-nw
$(RM) -r $@ $@.tmp
$(UNZIP) -d $@.tmp $<
%.nw: %.bare.zip tools/generate-nw
$(RM) -r $@ $@.tmp
$(UNZIP) -d $@.tmp $<
- tools/generate-nw $@.tmp
+ tools/generate-nw $@.tmp
`echo $(*F) | sed -E 's/.+_[^0-9]+//'`
cd $@.tmp && $(ZIP) -r ../$(@F) .
$(RM) -r $@.tmp
cd $@.tmp && $(ZIP) -r ../$(@F) .
$(RM) -r $@.tmp