]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/Makefile.global
add missing Makefiles
[SourceForge/phpwiki.git] / themes / Makefile.global
1 # $Id: Makefile 6691 2009-03-23 07:43:49Z rurban $
2 #
3 # themes/Makefile.global
4 #
5 # minify themes, for gnu make only
6
7 .PHONY: all css js
8
9 THEMES = AVL default MonoBook wikilens Sidebar SpaceWiki blog MacOSX gforge
10
11 # http://developer.yahoo.com/yui/compressor/
12 YUICOMPRESSOR = java -jar h:/Java/yuicompressor-2.4.2.jar
13
14
15 css: $(CSS_FILES)
16
17 js:  $(MAIN)-min.js $(patsubst %.js,%-min.js,$(JS_REST)) 
18
19 clean:
20         rm $(MAIN)-min.js $(patsubst %.js,%-min.js,$(JS_REST)) $(CSS_FILES) 
21
22 $(MAIN)-min.js : $(JS_MAIN)
23         $(YUICOMPRESSOR) -o $@ $(JS_MAIN)
24
25 %-min.css : %.css
26         $(YUICOMPRESSOR) -o $@ $<
27
28 %-min.js : %.js
29         $(YUICOMPRESSOR) -o $@ $<
30
31 IEFixes-min.js : IEFixes.js
32         $(YUICOMPRESSOR) $< | sed -e's,style.floats,style.float,g' > $@