DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
# -*- Makefile -*-
TEST_HTTP ?= test.mozilla.com
TEST_JS = $(shell find . -name '*.js' -print)
CURRDIR=$(shell pwd)
JSDIR=$(shell basename $(CURRDIR))

all: menu.html \
	menu-list.txt \
	spidermonkey-extensions-n.tests \
	failures.txt

menu.html: menuhead.html menufoot.html Makefile  spidermonkey-n.tests $(TEST_JS)
	perl mklistpage.pl > menubody.html
	cat menuhead.html menubody.html menufoot.html > menu.html

spidermonkey-extensions-n.tests: $(TEST_JS)
	find . -name '*.js' | grep -v shell.js | grep -v browser.js | grep '/extensions/' | sed 's|\.\/||' | sort > $@

menu-list.txt:
	echo "http://$(TEST_HTTP)/tests/mozilla.org/$(JSDIR)/menu.html" > menu-list.txt

.PHONY: patterns

public-failures.txt:
	touch $@

confidential-failures.txt:
	touch $@

universe.data:
	touch $@

confidential-universe.data:
	touch $@

patterns: confidential-failures.txt confidential-universe.data public-failures.txt universe.data
	if [[ -e confidential-failures.txt.expanded ]]; then \
		cp confidential-failures.txt confidential-failures.txt.save; \
		export TEST_UNIVERSE=$(CURRDIR)/confidential-universe.data && \
		./pattern-extracter.pl confidential-failures.txt.expanded > confidential-failures.txt; \
	fi
	if [[ -e public-failures.txt.expanded ]]; then \
		cp public-failures.txt public-failures.txt.save; \
		./pattern-extracter.pl public-failures.txt.expanded > public-failures.txt; \
	fi

public-failures.txt.expanded: public-failures.txt universe.data
	./pattern-expander.pl public-failures.txt > public-failures.txt.expanded

confidential-failures.txt.expanded: confidential-failures.txt confidential-universe.data
	export TEST_UNIVERSE=$(CURRDIR)/confidential-universe.data && \
	./pattern-expander.pl confidential-failures.txt > confidential-failures.txt.expanded

failures.txt: public-failures.txt.expanded confidential-failures.txt.expanded
	sort -u public-failures.txt.expanded confidential-failures.txt.expanded > failures.txt

clean:
	rm -f menubody.html menu.html menu-list.txt failures.txt *failures.txt.expanded excluded-*.tests included-*.tests urllist*.html urllist*.tests