Skip to content

Commit

Permalink
Change makefile to accomodate the decoupled loading indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
dieulot committed Sep 7, 2015
1 parent afff5e3 commit bfeb9b0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
tests/instantclick.js
instantclick.min.js
build
18 changes: 10 additions & 8 deletions makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
all:
@head -1 src/instantclick.js > min.head.js
@curl --silent --data "output_info=compiled_code" --data-urlencode "js_code@src/instantclick.js" "http://closure-compiler.appspot.com/compile" -o min.code.js
@cat min.head.js min.code.js > instantclick.min.js
@rm min.head.js min.code.js
@gzip instantclick.min.js
@du -b src/instantclick.js instantclick.min.js.gz
@gunzip instantclick.min.js.gz
@mkdir -p build
@head -1 src/instantclick.js > build/min.head.js
@cat src/instantclick.js src/loading-indicator.js > build/cat.js
@curl --silent --data "output_info=compiled_code" --data-urlencode "js_code@build/cat.js" "http://closure-compiler.appspot.com/compile" -o build/min.code.js
@cat build/min.head.js build/min.code.js > build/instantclick.min.js
@rm build/cat.js build/min.head.js build/min.code.js
@gzip build/instantclick.min.js
@du -b build/instantclick.min.js.gz
@gunzip build/instantclick.min.js.gz

clean:
@rm instantclick.min.js
@rm -r build

0 comments on commit bfeb9b0

Please sign in to comment.