-
Notifications
You must be signed in to change notification settings - Fork 140
Add Makefile #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Add Makefile #21
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
c2b6033
Add Makefile
dorako321 212f721
Fis some problems
dorako321 5cd6211
replace spaces to tab
dorako321 c84f935
remove hardcoding of Makefile
dorako321 a38f2f9
replace spaces to tab
dorako321 7bbfa23
remove .project file
dorako321 ca33c15
Add Makefile
dorako321 ecb42d0
Merge branch 'master' of https://github.com/dorako321/JavaScript-ID3-…
dorako321 964eb44
Add Makefile
dorako321 5a446a4
Merge remote-tracking branch 'origin/master'
dorako321 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,83 @@ | ||
| <<<<<<< HEAD | ||
| <<<<<<< HEAD | ||
| ======= | ||
| >>>>>>> origin/master | ||
| # build id3.js | ||
|
|
||
| # output dir | ||
| DIR = dist | ||
| PRODUCTS = id3.min.js id3.dev.js | ||
| OUTPUTS = $(PRODUCTS:%=$(DIR)/%) | ||
| LIBS = id3.lib.js id3.core.js | ||
| CLOSURE_COMPILER ?= /usr/local/closure-compiler/compiler.jar | ||
|
|
||
| .PHONY: all clean | ||
| all: $(OUTPUTS) | ||
| # The lib and core files are intermediates, not needed after compilation | ||
| .INTERMEDIATE: $(LIBS) | ||
|
|
||
| # Search for JS files in src/ | ||
| vpath %.js src | ||
|
|
||
| # Actual dependencies for each lib | ||
| $(DIR)/id3.lib.js: stringutils.js bufferedbinaryajax.js filereader.js base64.js | ||
| $(DIR)/id3.core.js: id3.js id3v1.js id3v2.js id3v2frames.js id4.js | ||
| $(DIR)/id3.dev.js: $(LIBS:%=$(DIR)/%) | ||
|
|
||
| $(DIR)/%.js: | ||
| cat $^ > $@ | ||
|
|
||
| $(DIR)/id3.min.js: $(DIR)/id3.dev.js | ||
| java -jar $(CLOSURE_COMPILER) --compilation_level ADVANCED_OPTIMIZATIONS \ | ||
| --js $< > $@ | ||
| <<<<<<< HEAD | ||
| ======= | ||
| # build default.js | ||
| CLOSURE_COMPILER=/usr/local/closure-compiler/compiler.jar | ||
|
|
||
| # the default rule when someone runs simply `make` | ||
| all: \ | ||
| dist/id3.min.js \ | ||
| dist/id3.dev.js | ||
|
|
||
| .INTERMEDIATE dist/release/default.min.js: \ | ||
| default.core.js | ||
|
|
||
| .INTERMEDIATE dist/release/js/default.min.js: \ | ||
| default.core.js | ||
|
|
||
|
|
||
| id3.lib.js: \ | ||
| src/stringutils.js \ | ||
| src/bufferedbinaryajax.js \ | ||
| src/filereader.js \ | ||
| src/base64.js \ | ||
|
|
||
| id3.core.js: \ | ||
| src/id3.js \ | ||
| src/id3v1.js \ | ||
| src/id3v2.js \ | ||
| src/id3v2frames.js \ | ||
| src/id4.js \ | ||
|
|
||
|
|
||
| dist: | ||
|
|
||
| # assemble an uncompressed but complete library for development | ||
| dist/id3.min.js: dist id3.core.js id3.lib.js | ||
| cat id3.lib.js \ | ||
| id3.core.js > dist/id3.dev.js | ||
|
|
||
| java -jar "$CLOSURE_COMPILER" \ | ||
| --compilation_level ADVANCED_OPTIMIZATIONS \ | ||
| --js id3.lib.js \ | ||
| --js id3.core.js \ | ||
| > dist/id3.min.js | ||
|
|
||
|
|
||
| >>>>>>> c2b6033... Add Makefile | ||
| ======= | ||
| >>>>>>> origin/master | ||
|
|
||
| clean: | ||
| rm -f dist/* | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you use “?=” instead of “=”? That way I can use the closure compiler I want without changing the makefile and getting a dirty tree.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i fixed it. thanks