Changeset 580


Ignore:
Timestamp:
02/16/09 22:06:41 (3 years ago)
Author:
jf.hovinne
Message:

Updated Makefile to output minified JS. See #143.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile

    r565 r580  
    1010WE = ${BUILD_DIR}/build/jquery.wymeditor.js 
    1111WE_PACK = ${BUILD_DIR}/build/jquery.wymeditor.pack.js 
     12WE_MIN = ${BUILD_DIR}/build/jquery.wymeditor.min.js 
    1213WE_ARCH = ${BUILD_DIR}/build/wymeditor.tar.gz 
    1314 
     
    1617MERGE = cat ${JS_FILES} | perl -pe 's/^\xEF\xBB\xBF//g' > ${WE} 
    1718WE_PACKER = perl -I${BUILD_DIR}/packer ${BUILD_DIR}/packer/jsPacker.pl -i ${WE} -o ${WE_PACK} -e62 -f 
     19WE_MINIFIER = java -jar ${BUILD_DIR}/minifier/yuicompressor-2.4.2.jar ${WE} > ${WE_MIN} 
    1820 
    1921all: archive 
     
    3739        @@echo 
    3840 
    39 archive: pack 
     41min: wymeditor 
     42        @@echo "Building" ${WE_MIN} 
     43 
     44        @@echo " - Compressing using Minifier" 
     45        @@${WE_MINIFIER} 
     46         
     47        @@echo ${WE_MIN} "Built" 
     48        @@echo 
     49 
     50archive: pack min 
    4051        @@echo "Building" ${WE_ARCH} 
    4152 
     
    4455        @@cp -pR ${SRC_DIR}/wymeditor ${BUILD_DIR}/build/wymeditor/ 
    4556        @@rm ${BUILD_DIR}/build/wymeditor/wymeditor/*.js 
    46         @@cp ${WE} ${WE_PACK} ${BUILD_DIR}/build/wymeditor/wymeditor/ 
     57        @@cp ${WE} ${WE_PACK} ${WE_MIN} ${BUILD_DIR}/build/wymeditor/wymeditor/ 
    4758        @@cp -pR ${SRC_DIR}/*.txt ${SRC_DIR}/README ${BUILD_DIR}/build/wymeditor/ 
    4859        @@cp -pR ${SRC_DIR}/examples ${BUILD_DIR}/build/wymeditor/ 
Note: See TracChangeset for help on using the changeset viewer.