Conversation
Makefile
Outdated
There was a problem hiding this comment.
Could you use “?=” instead of “=”? That way I can use the closure compiler I want without changing the makefile and getting a dirty tree.
|
Hi dorako321, I've looked at your makefile but it seems to hard-code too much stuff. Could you take a look a this suggestion? Thank you, Filipe # 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 $< > $@
clean:
rm -f dist/* |
|
Hi filcab. |
.project
Outdated
There was a problem hiding this comment.
Can you remove this file from the PR please? :-)
|
Can you please rebase your 6 commits into a single one? |
|
is this correct? |
Conflicts: Makefile
|
Hi @dorako321, I'm really thankful for all the work you put on this but I've just noticed that To preserve your work and credit you I've created a branch with the Makefile: https://github.com/aadsm/JavaScript-ID3-Reader/tree/makefile |
This Makefile can make uncompressed file (for developer) and compressed file. Moreover, It can remove files in dist directory by clean command.
"make all" this command outputs uncompressed/compressed file in dist directory
"make clean" this command removes files in dist directory