| 1 |
Description: Use debian tools |
| 2 |
Tweak Makefile to use tools packaged by Debian |
| 3 |
instead of bundled with the source package |
| 4 |
Author: dod |
| 5 |
Applied-Upstream: NA |
| 6 |
--- a/Makefile |
| 7 |
+++ b/Makefile |
| 8 |
@@ -1,6 +1,6 @@ |
| 9 |
SHELL := /bin/bash |
| 10 |
|
| 11 |
-CLOSURE_COMPILER=java -jar tools/closure-compiler/compiler.jar \ |
| 12 |
+CLOSURE_COMPILER=closure-compiler \ |
| 13 |
--warning_level VERBOSE \ |
| 14 |
--language_in ECMASCRIPT5 \ |
| 15 |
--compilation_level ADVANCED_OPTIMIZATIONS \ |
| 16 |
@@ -10,8 +10,7 @@ |
| 17 |
# to UTF-8 sequences instead of being emitted as ASCII. |
| 18 |
# This makes the resulting JavaScript less portable. |
| 19 |
|
| 20 |
-YUI_COMPRESSOR=java -jar tools/yui-compressor/yuicompressor-2.4.4.jar \ |
| 21 |
- --charset UTF-8 |
| 22 |
+YUI_COMPRESSOR=yui-compressor --charset UTF-8 |
| 23 |
|
| 24 |
TAR_ROOT=distrib/google-code-prettify |
| 25 |
|
| 26 |
@@ -44,16 +43,12 @@ |
| 27 |
| grep -v total; \ |
| 28 |
done |
| 29 |
@$(CLOSURE_COMPILER) --js src/prettify.js \ |
| 30 |
- --externs tools/closure-compiler/console-externs.js \ |
| 31 |
- --externs tools/closure-compiler/amd-externs.js \ |
| 32 |
--define IN_GLOBAL_SCOPE=true \ |
| 33 |
--output_wrapper='!function(){%output%}()' \ |
| 34 |
> $(TAR_ROOT)/prettify.js |
| 35 |
@wc -c src/prettify.js $(TAR_ROOT)/prettify.js \ |
| 36 |
| grep -v total |
| 37 |
@$(CLOSURE_COMPILER) --js src/run_prettify.js \ |
| 38 |
- --externs tools/closure-compiler/console-externs.js \ |
| 39 |
- --externs tools/closure-compiler/amd-externs.js \ |
| 40 |
--define IN_GLOBAL_SCOPE=false \ |
| 41 |
--output_wrapper='!function(){%output%}()' \ |
| 42 |
> $(TAR_ROOT)/run_prettify.js |