Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 55 lines (43 sloc) 1.24 kb
3fa6ea3 @trevnorris add npm dependencies. simplify Makefile. remove jshint checks. remove un...
trevnorris authored
1 NODE_PATH ?= ./node_modules
2 DIST_DIR = ./dist
3 JS_COMPILER = $(NODE_PATH)/uglify-js/bin/uglifyjs
4 JS_TESTER = $(NODE_PATH)/vows/bin/vows
987cc1f @trevnorris being setup for new build processes, and linking to externals
trevnorris authored
5
c2afb4c @trevnorris adding documentation creation to Makefile
trevnorris authored
6 DOC_DIR = doc
3fa6ea3 @trevnorris add npm dependencies. simplify Makefile. remove jshint checks. remove un...
trevnorris authored
7 BUILD_DIR = build
8 DOC_LIST = `ls $(DOC_DIR)/md/`
9430427 @adamnovak Improve Hypergeometric CDF and PDF
adamnovak authored
9 JS_ENGINE ?= $(shell which node nodejs 2>/dev/null | grep -Po -m 1 "(.+?)$$")
c2afb4c @trevnorris adding documentation creation to Makefile
trevnorris authored
10
2395a10 @trevnorris small jshint cleanup
trevnorris authored
11 all: clean core doc
987cc1f @trevnorris being setup for new build processes, and linking to externals
trevnorris authored
12
3fa6ea3 @trevnorris add npm dependencies. simplify Makefile. remove jshint checks. remove un...
trevnorris authored
13 clean:
14 @echo 'Cleaning up build files'
15 @rm -rf dist
987cc1f @trevnorris being setup for new build processes, and linking to externals
trevnorris authored
16
3fa6ea3 @trevnorris add npm dependencies. simplify Makefile. remove jshint checks. remove un...
trevnorris authored
17 core: jstat.js jstat.min.js
166a7a0 @trevnorris fix to actually export content
trevnorris authored
18
3fa6ea3 @trevnorris add npm dependencies. simplify Makefile. remove jshint checks. remove un...
trevnorris authored
19 jstat.js: \
20 src/core.js \
f73e78c @trevnorris merge major file structure changes
trevnorris authored
21 src/vector.js \
3fa6ea3 @trevnorris add npm dependencies. simplify Makefile. remove jshint checks. remove un...
trevnorris authored
22 src/special.js \
23 src/distribution.js \
9057193 Updating make file
Chris Rackauckas authored
24 src/linearalgebra.js \
2130d4c @jamescgibson Fix 'make doc' issue on systems with node & nodejs
jamescgibson authored
25 src/test.js
3fa6ea3 @trevnorris add npm dependencies. simplify Makefile. remove jshint checks. remove un...
trevnorris authored
26 @echo 'Building jStat'
27 @mkdir -p $(DIST_DIR)
28 @cat $^ > $(DIST_DIR)/$@
987cc1f @trevnorris being setup for new build processes, and linking to externals
trevnorris authored
29
3fa6ea3 @trevnorris add npm dependencies. simplify Makefile. remove jshint checks. remove un...
trevnorris authored
30 jstat.min.js: jstat.js
31 @echo 'Minifying jStat'
32 @$(JS_COMPILER) < $(DIST_DIR)/$< > $(DIST_DIR)/$@
987cc1f @trevnorris being setup for new build processes, and linking to externals
trevnorris authored
33
c2afb4c @trevnorris adding documentation creation to Makefile
trevnorris authored
34 doc:
3fa6ea3 @trevnorris add npm dependencies. simplify Makefile. remove jshint checks. remove un...
trevnorris authored
35 @echo 'Generating documentation'
36 @mkdir -p $(DIST_DIR)/docs/assets
37 @cp $(DOC_DIR)/assets/*.css $(DIST_DIR)/docs/assets/
38 @cp $(DOC_DIR)/assets/*.js $(DIST_DIR)/docs/assets/
39 @for i in $(DOC_LIST); do \
40 $(JS_ENGINE) $(BUILD_DIR)/doctool.js $(DOC_DIR)/assets/template.html $(DOC_DIR)/md/$${i} $(DIST_DIR)/docs/$${i%.*}.html; \
c2afb4c @trevnorris adding documentation creation to Makefile
trevnorris authored
41 done
42
ae4075e @trevnorris update with information on running tests
trevnorris authored
43 jstat: jstat.js
44
3fa6ea3 @trevnorris add npm dependencies. simplify Makefile. remove jshint checks. remove un...
trevnorris authored
45 install:
46 @echo 'Downloading necessary libraries for build'
47 @mkdir -p node_modules
48 @npm install
987cc1f @trevnorris being setup for new build processes, and linking to externals
trevnorris authored
49
3fa6ea3 @trevnorris add npm dependencies. simplify Makefile. remove jshint checks. remove un...
trevnorris authored
50 test: clean core
51 @echo 'Running jStat unit tests'
52 @$(JS_TESTER)
987cc1f @trevnorris being setup for new build processes, and linking to externals
trevnorris authored
53
3fa6ea3 @trevnorris add npm dependencies. simplify Makefile. remove jshint checks. remove un...
trevnorris authored
54 .PHONY: clean core doc install test
Something went wrong with that request. Please try again.