-
Notifications
You must be signed in to change notification settings - Fork 118
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (18 loc) · 687 Bytes
/
Makefile
File metadata and controls
26 lines (18 loc) · 687 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
.PHONY: all check clean distclean distcheck
version := $(shell node -e "console.log(require('./package.json').version)")
npmbin := $(shell npm bin)
all: clean
@echo "building: $(version)"; \
npm install; \
$(npmbin)/browserify lib/dist.js \
| tee ./js/genetic-$(version).js \
| $(npmbin)/uglifyjs > ./js/genetic-$(version).min.js; \
echo "built:"; \
ls -1 js/* | sed 's/^/ /'
check:
@$(npmbin)/mocha --reporter spec
distcheck: distclean all check
clean:
rm -f js/*.js
distclean: clean
rm -rf node_modules