forked from dieulot/instantclick
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change makefile to accomodate the decoupled loading indicator
- Loading branch information
Showing
2 changed files
with
11 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
tests/instantclick.js | ||
instantclick.min.js | ||
build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |