1 YUI
=~
/bin
/yuicompressor-2.4
.2.jar
3 MINIFY_OTPIONS
= --preserve-semi
--line-break
80
5 VERSION
= `grep -e '\* Version: *[0-9.]' org-info-src.js | cut -sd ':' -f 2-`
12 minify
: version sed.txt
13 @if
[ -f
$(TMPv
) ] && [ -f
$(TMPs
) ]; then \
14 sed
-f sed.txt
$(TMPv
) > $(TMPs
); \
15 java
-jar
$(YUI
) $(MINIFY_OTPIONS
) $(TMPs
) > org-info.js
; \
18 echo
"org-info.js successfully built."; \
20 echo
"Failed to build. $(TMPv) and/or $(TMPs) are missing!"; \
24 @if
[ -f
$(TMPv
) ] ||
[ -f
$(TMPs
) ]; then \
25 echo
"$(TMPv) and/or $(TMPs) exist. Please remove them or adjust the Makefile!"; \
27 sed
-e
"s/###VERSION###/$(VERSION)/g" org-info-src.js
> $(TMPv
); \
32 @
rm -f
$(TMPv
) $(TMPs
)
33 @echo
"Temporary files removed."