Skip to content

Commit

Permalink
Change Makefile to use yui-compressor script directly, it appears to
Browse files Browse the repository at this point in the history
be widely available in Linux distributions these days
  • Loading branch information
OleLaursen committed Mar 22, 2011
1 parent aea8e9f commit 3c1e90b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Makefile
@@ -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.

Copy link
@Saluev

Saluev Aug 14, 2013

In MacOS yui-compressor command is called yuicompressor, with no hyphen.

This comment has been minimized.

Copy link
@dnschnur

dnschnur Aug 15, 2013

Member

Thanks for the heads-up. We're switching to UglifyJS for 0.9, so this shouldn't matter anymore.

0 comments on commit 3c1e90b

Please sign in to comment.