Skip to content

Commit

Permalink
Updated Makefile to have build-update, so we don't have to keep fetch…
Browse files Browse the repository at this point in the history
…ing the builders.
  • Loading branch information
balupton committed Jul 10, 2010
1 parent 8e874c4 commit 07dabc6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@

.build
.DS_Store
17 changes: 9 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
MAKEFLAGS = --no-print-directory --always-make
MAKE = make $(MAKEFLAGS)

BUILDDIR = ./build
BUILDDIR = ./.build

CLOSUREURL = http://closure-compiler.googlecode.com/files/compiler-latest.zip
CLOSUREDIR = $(BUILDDIR)/closure
Expand All @@ -19,21 +19,22 @@ OUTCSS = ./styles/jquery.lightbox.min.css

all:
$(MAKE) build;
$(MAKE) compress;
$(MAKE) clean;

build:
clean:
rm -Rf ./build;

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;

build:
$(MAKE) compress;

add:
git add CHECKLIST.txt COPYING.txt demo FDL.txt images Makefile README.txt scripts styles
git add .gitignore CHECKLIST.txt COPYING.txt demo FDL.txt images Makefile README.txt scripts styles

clean:
rm -Rf ./build;

compress:
java -jar $(CLOSUREFILE) --js_output_file=$(OUTJS) --js=$(INJS);
java -jar $(YUIFILE) $(INCSS) -o $(OUTCSS);
Expand Down

0 comments on commit 07dabc6

Please sign in to comment.