Don't use real directory name as phony target.
This commit is contained in:
parent
2176e16088
commit
0994fe6e79
14
Makefile
14
Makefile
@ -80,7 +80,7 @@ imports := \
|
|||||||
$(wildcard src/css/*.css) \
|
$(wildcard src/css/*.css) \
|
||||||
.tests_enabled
|
.tests_enabled
|
||||||
|
|
||||||
builds := \
|
bds := \
|
||||||
$(foreach f, \
|
$(foreach f, \
|
||||||
$(foreach c,. -beta.,$(name)$(c)crx updates$(c)xml $(name)$(c)user.js $(name)$(c)meta.js) \
|
$(foreach c,. -beta.,$(name)$(c)crx updates$(c)xml $(name)$(c)user.js $(name)$(c)meta.js) \
|
||||||
$(name)-noupdate.crx \
|
$(name)-noupdate.crx \
|
||||||
@ -88,13 +88,13 @@ builds := \
|
|||||||
$(name).zip \
|
$(name).zip \
|
||||||
,builds/$(f))
|
,builds/$(f))
|
||||||
|
|
||||||
testbuilds := $(foreach f,$(subst .crx,.crx.zip,$(builds)),test$(f))
|
testbds := $(foreach f,$(subst .crx,.crx.zip,$(bds)),test$(f))
|
||||||
|
|
||||||
jshint := $(foreach f,script-crx eventPage script-userscript,.events/jshint.$(f))
|
jshint := $(foreach f,script-crx eventPage script-userscript,.events/jshint.$(f))
|
||||||
|
|
||||||
default : install
|
default : install
|
||||||
|
|
||||||
all : builds install
|
all : bds install
|
||||||
|
|
||||||
.events :
|
.events :
|
||||||
mkdir $@
|
mkdir $@
|
||||||
@ -177,13 +177,13 @@ test.html : README.md template.jst tools/markdown.js node_modules/marked/package
|
|||||||
install.json :
|
install.json :
|
||||||
echo {}> $@
|
echo {}> $@
|
||||||
|
|
||||||
.events/install : $(testbuilds) $(jshint) install.json tools/install.js node_modules/fs-extra/package.json | .events
|
.events/install : $(testbds) $(jshint) install.json tools/install.js node_modules/fs-extra/package.json | .events
|
||||||
node tools/install.js
|
node tools/install.js
|
||||||
echo -> $@
|
echo -> $@
|
||||||
|
|
||||||
.SECONDARY :
|
.SECONDARY :
|
||||||
|
|
||||||
.PHONY: default all clean cleanall testbuilds builds jshint install
|
.PHONY: default all clean cleanall testbds bds jshint install
|
||||||
|
|
||||||
clean :
|
clean :
|
||||||
$(RMDIR) tmp testbuilds .events
|
$(RMDIR) tmp testbuilds .events
|
||||||
@ -192,9 +192,9 @@ clean :
|
|||||||
cleanall : clean
|
cleanall : clean
|
||||||
$(RMDIR) builds
|
$(RMDIR) builds
|
||||||
|
|
||||||
testbuilds : $(testbuilds)
|
testbds : $(testbds)
|
||||||
|
|
||||||
builds : $(builds)
|
bds : $(bds)
|
||||||
|
|
||||||
jshint : $(jshint)
|
jshint : $(jshint)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user