File: Makefile

package info (click to toggle)
flot 0.6+debian-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 504 kB
  • ctags: 147
  • sloc: makefile: 14
file content (15 lines) | stat: -rw-r--r-- 451 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 $@