2005-08-31 04:40:11 +00:00
|
|
|
# -*- Makefile -*-
|
|
|
|
|
2005-11-20 05:56:58 +00:00
|
|
|
TEST_HTTP ?= test.mozilla.com
|
2005-08-31 04:40:11 +00:00
|
|
|
TEST_JS = $(shell find . -name '*.js' -print)
|
2006-06-14 23:14:14 +00:00
|
|
|
CURRDIR=$(shell pwd)
|
|
|
|
JSDIR=$(shell basename $(CURRDIR))
|
1999-11-17 02:05:29 +00:00
|
|
|
|
2007-05-07 05:38:03 +00: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
|
2005-03-18 19:09:59 +00:00
|
|
|
|
2007-04-30 20:03:56 +00:00
|
|
|
menu.html: menuhead.html menufoot.html Makefile excluded-n.tests $(TEST_JS)
|
2005-08-31 04:40:11 +00:00
|
|
|
perl mklistpage.pl > menubody.html
|
1999-11-19 01:18:33 +00:00
|
|
|
cat menuhead.html menubody.html menufoot.html > menu.html
|
1999-11-23 22:35:35 +00:00
|
|
|
|
2007-04-30 20:03:56 +00: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 > $@
|
|
|
|
|
2005-11-20 05:56:58 +00:00
|
|
|
menu-list.txt:
|
2006-06-14 23:14:14 +00:00
|
|
|
echo "http://$(TEST_HTTP)/tests/mozilla.org/$(JSDIR)/menu.html" > menu-list.txt
|
2005-11-20 05:56:58 +00:00
|
|
|
|
2007-04-30 20:03:56 +00: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-07 05:38:03 +00: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 20:03:56 +00:00
|
|
|
#e4x-list.txt: $(TEST_JS)
|
|
|
|
# ./list.sh e4x | sort > e4x-list.txt
|
2005-11-20 05:56:58 +00:00
|
|
|
|
2007-04-30 20:03:56 +00:00
|
|
|
#lc2-list.txt: $(TEST_JS)
|
|
|
|
# ./list.sh lc2 | sort > lc2-list.txt
|
2005-11-20 05:56:58 +00:00
|
|
|
|
2007-04-30 20:03:56 +00: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
|
2005-11-20 05:56:58 +00:00
|
|
|
|
2005-03-18 19:09:59 +00:00
|
|
|
clean:
|
2007-04-30 20:03:56 +00:00
|
|
|
rm -f menubody.html menu.html *-list.txt excluded-n.tests
|
2005-08-31 04:40:11 +00:00
|
|
|
|