Skip to content

Commit

Permalink
Added makefile for building the compressed files
Browse files Browse the repository at this point in the history
git-svn-id: https://flot.googlecode.com/svn/trunk@224 1e0a6537-2640-0410-bfb7-f154510ff394
  • Loading branch information
olau@iola.dk committed Oct 23, 2009
1 parent f0f4a8f commit 91e0550
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# 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

# we cheat and process all .js files instead of listing them
all: $(patsubst %.js,%.min.js,$(filter-out %.min.js,$(wildcard *.js)))

%.min.js: %.js
java -jar $(YUICOMPRESSOR_PATH) $< -o $@

0 comments on commit 91e0550

Please sign in to comment.