/adei/ui

To get this branch, use:
bzr branch http://darksoft.org/webbzr/adei/ui

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Suren A. Chilingaryan
  • Date: 2008-10-30 01:27:40 UTC
  • mto: This revision was merged to the branch mainline in revision 116.
  • Revision ID: csa@dside.dyndns.org-20081030012740-svt0yigxj5uzwxyj
Few steps on source tree integration in javascript frontend

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
JAVA = java
 
2
YUI = includes/yuicompressor-2.4.jar
 
3
 
 
4
.PHONY: all error compress-js compress-css
 
5
 
 
6
all: compress-js
 
7
 
 
8
compress-js: js/*.js
 
9
        cat js/*.js > adei.uncompressed.js; \
 
10
        ${JAVA} -jar ${YUI} -o adei.js adei.uncompressed.js; \
 
11
        rm -f adei.uncompressed.js
 
12
 
 
13
 
 
14
error:
 
15
        for script in js/*.js; do \
 
16
            echo Checking $$script; \
 
17
            ${JAVA} -jar ${YUI} $$script > /dev/null || \
 
18
            ( ${JAVA} -jar ${YUI} ${script}; exit 1; ); \
 
19
        done
 
20
            
 
21