projects
/
string-lerp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
1799098
)
Add install target, fix alias in git targets.
author
Joe Wreschnig
<joe.wreschnig@gmail.com>
Sun, 18 May 2014 23:42:30 +0000
(
01:42
+0200)
committer
Joe Wreschnig
<joe.wreschnig@gmail.com>
Sun, 18 May 2014 23:42:30 +0000
(
01:42
+0200)
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index
9d74d81
..
fb4849c
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-22,7
+22,7
@@
LINT_TARGETS = $(patsubst %.js,build/stamp/%.lint,$(SOURCES))
TEST_TARGETS = $(patsubst %.js,build/stamp/%.test,$(SOURCES)) \
$(patsubst tests/%.js,build/stamp/%.test,$(TESTS))
TEST_TARGETS = $(patsubst %.js,build/stamp/%.test,$(SOURCES)) \
$(patsubst tests/%.js,build/stamp/%.test,$(TESTS))
-.PHONY: all check lint test ugly dist clean distclean
+.PHONY: all check lint test ugly dist clean distclean
install
all:
@echo "Interesting targets:"
all:
@echo "Interesting targets:"
@@
-31,7
+31,7
@@
all:
@echo " ugly - generate minified/mangled source files"
@echo " dist - generate redistributables (if git tagged)"
@echo
@echo " ugly - generate minified/mangled source files"
@echo " dist - generate redistributables (if git tagged)"
@echo
- @echo "(Running these may download packages from
NPM
.)"
+ @echo "(Running these may download packages from
npm
.)"
@echo
%.min.js: %.js | $(UGLIFY)
@echo
%.min.js: %.js | $(UGLIFY)
@@
-68,12
+68,12
@@
build/dist/$(PKGNAME)-undefined.zip build/dist/$(PKGNAME)-undefined.tar.gz:
.SECONDEXPANSION:
build/dist/$(PKGNAME)-%.zip: $$(call git_ls-tree,$$*)
@mkdir -p $(@D)
.SECONDEXPANSION:
build/dist/$(PKGNAME)-%.zip: $$(call git_ls-tree,$$*)
@mkdir -p $(@D)
-
git
archive --prefix=$(PKGNAME)-$*/ --output=$@ $*
+
$(GIT)
archive --prefix=$(PKGNAME)-$*/ --output=$@ $*
.SECONDEXPANSION:
build/dist/$(PKGNAME)-%.tar.gz: $$(call git_ls-tree,$$*)
@mkdir -p $(@D)
.SECONDEXPANSION:
build/dist/$(PKGNAME)-%.tar.gz: $$(call git_ls-tree,$$*)
@mkdir -p $(@D)
-
git
archive --prefix=$(PKGNAME)-$*/ --output=$@ $*
+
$(GIT)
archive --prefix=$(PKGNAME)-$*/ --output=$@ $*
dist: check $(addprefix build/dist/$(PKGNAME)-$(call git_tag,HEAD),.zip .tar.gz)
dist: check $(addprefix build/dist/$(PKGNAME)-$(call git_tag,HEAD),.zip .tar.gz)
@@
-84,6
+84,9
@@
clean:
distclean: clean
$(RM) -r node_modules
distclean: clean
$(RM) -r node_modules
+install: check
+ $(NPM) install -g .
+
$(JSTEST):
$(NPM) install jstest
$(JSTEST):
$(NPM) install jstest