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 use yui-compressor script directly, it appears to
be widely available in Linux distributions these days
- Loading branch information
1 parent
aea8e9f
commit 3c1e90b
Showing
1 changed file
with
1 addition
and
7 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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,15 +1,9 @@ | |||
# Makefile for generating minified files | # Makefile for generating minified files | ||
|
|
||
YUICOMPRESSOR_PATH=../yuicompressor-2.3.5.jar | |||
|
|||
# if you need another compressor path, just copy the above line to a | |||
# file called Makefile.local, customize it and you're good to go | |||
-include Makefile.local | |||
|
|||
.PHONY: all | .PHONY: all | ||
|
|
||
# we cheat and process all .js files instead of an exhaustive list | # we cheat and process all .js files instead of an exhaustive list | ||
all: $(patsubst %.js,%.min.js,$(filter-out %.min.js,$(wildcard *.js))) | all: $(patsubst %.js,%.min.js,$(filter-out %.min.js,$(wildcard *.js))) | ||
|
|
||
%.min.js: %.js | %.min.js: %.js | ||
java -jar $(YUICOMPRESSOR_PATH) $< -o $@ | yui-compressor $< -o $@ | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
dnschnur
Member
|
In MacOS yui-compressor command is called yuicompressor, with no hyphen.