Skip to content

Commit

Permalink
Need to be able to rebuild runtime.
Browse files Browse the repository at this point in the history
  • Loading branch information
ingydotnet committed Jul 20, 2011
1 parent dc0f562 commit afe4936
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tests/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.PHONY: all clean purge

JEMPLATE=../bin/jemplate
RENDERER:=$(shell echo `js-cpan Test/Base/bin/render-template`)
TEST_TEMPLATE:=$(shell echo `js-cpan Test/Base/template/test.html`)
INDEX_TEMPLATE:=$(shell echo `js-cpan Test/Base/template/index.html`)
Expand All @@ -26,15 +27,18 @@ ALL_LIBS= \
lib/Test/Harness.js \
lib/Test/Harness/Browser.js \

all: $(ALL_DIRS) $(ALL_TARGETS) $(ALL_LIBS)
ALL_JS= \
js/JemplateRuntime.js \

all: $(ALL_DIRS) $(ALL_TARGETS) $(ALL_LIBS) $(ALL_JS)

test: all
@echo
@echo 'Load index.html at the following URL to run browser tests:'
@plackup

clean:
rm -fr $(ALL_TARGETS) $(ALL_LIBS)
rm -fr $(ALL_TARGETS) $(ALL_LIBS) $(ALL_JS)
if [ "$(TEST_TEMPLATE_MD5)" = \
"$(TEST_LOCAL_MD5)" ]; then rm -f $(TEST_LOCAL); fi
if [ "$(INDEX_TEMPLATE_MD5)" = \
Expand Down Expand Up @@ -75,3 +79,6 @@ $(INDEX_LOCAL):

template:
mkdir -p $@

js/JemplateRuntime.js:
$(JEMPLATE) --runtime=standard > $@

0 comments on commit afe4936

Please sign in to comment.