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
|
|
|
|
2008-02-06 20:05:33 +00:00
|
|
|
all: menu.html \
|
|
|
|
menu-list.txt \
|
|
|
|
spidermonkey-extensions-n.tests \
|
|
|
|
failures.txt
|
2005-03-18 19:09:59 +00:00
|
|
|
|
2008-02-06 20:05:33 +00:00
|
|
|
menu.html: menuhead.html menufoot.html Makefile spidermonkey-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
|
|
|
spidermonkey-extensions-n.tests: $(TEST_JS)
|
2007-05-26 00:19:18 +00:00
|
|
|
find . -name '*.js' | grep -v shell.js | grep -v browser.js | grep '/extensions/' | sed 's|\.\/||' | sort > $@
|
2007-04-30 20:03:56 +00:00
|
|
|
|
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-10-01 19:10:41 +00:00
|
|
|
confidential-failures.txt:
|
|
|
|
touch confidential-failures.txt
|
2005-11-20 05:56:58 +00:00
|
|
|
|
2007-10-01 19:10:41 +00:00
|
|
|
failures.txt: public-failures.txt confidential-failures.txt
|
2008-02-06 20:05:33 +00:00
|
|
|
cp public-failures.txt public-failures.txt.save
|
|
|
|
cp confidential-failures.txt confidential-failures.txt.save
|
2007-11-19 17:30:44 +00:00
|
|
|
sort < public-failures.txt | uniq | ./create-patterns.pl > public-failures.$$
|
|
|
|
mv public-failures.$$ public-failures.txt
|
|
|
|
sort < confidential-failures.txt | uniq | ./create-patterns.pl > confidential-failures.$$
|
|
|
|
mv confidential-failures.$$ confidential-failures.txt
|
2007-10-01 19:10:41 +00:00
|
|
|
cat public-failures.txt confidential-failures.txt | sort | uniq > failures.txt
|
2005-11-20 05:56:58 +00:00
|
|
|
|
2005-03-18 19:09:59 +00:00
|
|
|
clean:
|
2008-02-06 20:05:33 +00:00
|
|
|
rm -f menubody.html menu.html menu-list.txt failures.txt excluded-*.tests included-*.tests urllist*.html urllist*.tests
|
|
|
|
|
2005-08-31 04:40:11 +00:00
|
|
|
|