2007-03-22 10:30:00 -07:00
|
|
|
# -*- Makefile -*-
|
|
|
|
|
|
|
|
TEST_HTTP ?= test.mozilla.com
|
|
|
|
TEST_JS = $(shell find . -name '*.js' -print)
|
|
|
|
CURRDIR=$(shell pwd)
|
|
|
|
JSDIR=$(shell basename $(CURRDIR))
|
|
|
|
|
2007-05-06 22:38:03 -07:00
|
|
|
all: menu.html 1.8.0-list.txt 1.8.1-list.txt 1.9.0-list.txt menu-list.txt excluded-n.tests spidermonkey-extensions-n.tests
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2007-04-30 13:03:56 -07:00
|
|
|
menu.html: menuhead.html menufoot.html Makefile excluded-n.tests $(TEST_JS)
|
2007-03-22 10:30:00 -07:00
|
|
|
perl mklistpage.pl > menubody.html
|
|
|
|
cat menuhead.html menubody.html menufoot.html > menu.html
|
|
|
|
|
2007-04-30 13:03:56 -07:00
|
|
|
excluded-n.tests: spidermonkey-n.tests slow-n.tests
|
|
|
|
cat $^ > $@
|
|
|
|
|
|
|
|
spidermonkey-extensions-n.tests: $(TEST_JS)
|
|
|
|
find . -name '*.js' | grep -v shell.js | grep -v browser.js | grep '/extensions/' | sort > $@
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
menu-list.txt:
|
|
|
|
echo "http://$(TEST_HTTP)/tests/mozilla.org/$(JSDIR)/menu.html" > menu-list.txt
|
|
|
|
|
2007-04-30 13:03:56 -07:00
|
|
|
1.8.0-list.txt: $(TEST_JS) excluded-n.tests
|
|
|
|
./list.sh e4x ecma ecma_2 ecma_3 js1_1 js1_2 js1_3 js1_4 js1_5 js1_6 | sort > 1.8.0-list.txt
|
|
|
|
|
|
|
|
1.8.1-list.txt: $(TEST_JS) 1.8.0-list.txt excluded-n.tests
|
|
|
|
cat 1.8.0-list.txt > 1.8.1-list.txt
|
|
|
|
./list.sh js1_7 | sort >> 1.8.1-list.txt
|
|
|
|
|
2007-05-06 22:38:03 -07:00
|
|
|
1.9.0-list.txt: $(TEST_JS) 1.8.1-list.txt excluded-n.tests
|
|
|
|
cat 1.8.1-list.txt > 1.9.0-list.txt
|
|
|
|
./list.sh js1_8 | sort >> 1.9.0-list.txt
|
|
|
|
|
2007-04-30 13:03:56 -07:00
|
|
|
#e4x-list.txt: $(TEST_JS)
|
|
|
|
# ./list.sh e4x | sort > e4x-list.txt
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2007-04-30 13:03:56 -07:00
|
|
|
#lc2-list.txt: $(TEST_JS)
|
|
|
|
# ./list.sh lc2 | sort > lc2-list.txt
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2007-04-30 13:03:56 -07:00
|
|
|
ecma_3/RegExp/re_tests:
|
|
|
|
curl -LsS -m 1800 "http://www.cpan.org/src/stable.tar.bz2" -o stable.tar.bz2
|
|
|
|
tar -jxvf stable.tar.bz2
|
|
|
|
cp `find . -maxdepth 1 -name 'perl-*'`/t/op/re_tests ecma_3/RegExp/re_tests
|
|
|
|
rm -fR `find . -maxdepth 1 -name 'perl-*'` stable.tar.bz2
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
clean:
|
2007-04-30 13:03:56 -07:00
|
|
|
rm -f menubody.html menu.html *-list.txt excluded-n.tests
|
2007-03-22 10:30:00 -07:00
|
|
|
|