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.

Mercurial (d5c3254b3e56)

VCS Links

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 59 60
# Litmus Makefile

PERL=perl

install: templates db js

# precompile all templates with the Template Toolkit
# to speed things up a good bit. 
# This ought to be done in a more "makelike" way, but 
# various difficulties prevent that unless we use a configure 
# script to generate the Makefile, at which point we could have 
# been done already...

%.tmpl: 
	$(PERL) -e " \
		eval('use CGI qw(-no_debug)'); \
		use Litmus::Template;use diagnostics; \
		\$$template = Litmus::Template->create(); \
		\$$template->context()->template('$@'); \
	"

templates: index.tmpl
	$(PERL) -e " \
		use File::Find; \
		find({ wanted => sub { \
			\$$name = \$$File::Find::name; \
			return if (-d \$$name); \
			return if (\$$name =~ /\/CVS\//); \
			return if (\$$name !~ /\.tmpl\$$/); \
			\$$name =~ s/templates\/en\/default\///; \
			if (-M 'templates/en/default/'.\$$name < -M 'data/templates/en/default/'.\$$name \
				|| ! -e 'data/templates/en/default/'.\$$name \
				|| -M 'Litmus/Template.pm' < -M 'data/templates/en/default/'.\$$name) { \
				system("make", "\$$name"); \
			} \
		}, no_chdir => 1 }, 'templates/en/default'); \
	"

db::	
	$(PERL) populatedb.pl

js::	
	scripts/minify_js.bash

# tags: generate ctags style hints for ease of editing
# requires Exuberant Ctags to be installed (http://ctags.sf.net/)
ctags: 
	`which ctags` --excmd=number --tag-relative=no --fields=+a+m+n+S -R `pwd`

tags: ctags

test: 
	$(PERL) runtests.pl

cache: 
	@echo "Deprecated - rebuildCache no longer required";

clean: 
	rm -rf data
	make install