Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

54 lines (37 sloc) 1.281 kb
# Javascript/CSS Compressor Makefile - By Benjamin "balupton" Lupton (MIT Licenced)
MAKEFLAGS = --no-print-directory --always-make
MAKE = make $(MAKEFLAGS)
BUILDDIR = ./.build
CLOSUREURL = http://closure-compiler.googlecode.com/files/compiler-latest.zip
CLOSUREDIR = $(BUILDDIR)/closure
CLOSUREFILE = $(CLOSUREDIR)/compiler.jar
YUIURL = http://yuilibrary.com/downloads/yuicompressor/yuicompressor-2.4.2.zip
YUIDIR = $(BUILDDIR)/yui
YUIFILE = $(YUIDIR)/yuicompressor-2.4.2/build/yuicompressor-2.4.2.jar
all:
$(MAKE) build;
$(MAKE) add;
demo:
open ./demo/index.html
add:
git add .gitignore CHECKLIST.* COPYING.* demo Makefile README.* scripts
push:
git push --all ; git push --tags ;
edithooks:
mate .git/hooks/pre-commit
pack:
cat \
./scripts/resources/jquery.scrollto.js \
> ./scripts/jquery.scrollto.js;
compress:
java -jar $(CLOSUREFILE) --create_source_map ./scripts/closure.map --js_output_file=./scripts/jquery.scrollto.min.js --js=./scripts/jquery.scrollto.js;
build:
$(MAKE) pack;
$(MAKE) compress;
build-update:
$(MAKE) clean;
mkdir $(BUILDDIR) $(CLOSUREDIR) $(YUIDIR);
cd $(CLOSUREDIR); wget -q $(CLOSUREURL) -O file.zip; tar -xf file.zip;
cd $(YUIDIR); wget -q $(YUIURL) -O file.zip; tar -xf file.zip;
clean:
rm -Rf $(BUILDDIR);
Jump to Line
Something went wrong with that request. Please try again.