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 (be336d703b41)

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
APPNAME = appkeys
DEPS = server-core
VIRTUALENV = virtualenv
NOSE = bin/nosetests -s --with-xunit
TESTS = tests
PYTHON = bin/python
EZ = bin/easy_install
COVEROPTS = --cover-html --cover-html-dir=html --with-coverage --cover-package=syncnodes
COVERAGE = bin/coverage
PYLINT = bin/pylint
PKGS = appkeys
PYPI2RPM = bin/pypi2rpm.py

.PHONY: all build test build_rpm build_justme install

all:	build

build:
	$(VIRTUALENV) --no-site-packages --distribute .
	$(PYTHON) build.py $(APPNAME) $(DEPS)
	$(EZ) nose
	$(EZ) WebTest
	$(EZ) Funkload
	$(EZ) pylint
	$(EZ) coverage
	$(EZ) pypi2rpm

test:
	$(NOSE) $(TESTS)

build_rpms:
	rm -rf $(CURDIR)/rpms
	mkdir $(CURDIR)/rpms
	$(PYPI2RPM) --dist-dir=$(CURDIR)/rpms webob
	$(PYPI2RPM) --dist-dir=$(CURDIR)/rpms paste
	$(PYPI2RPM) --dist-dir=$(CURDIR)/rpms pastedeploy
	$(PYPI2RPM) --dist-dir=$(CURDIR)/rpms pastescript
	$(PYPI2RPM) --dist-dir=$(CURDIR)/rpms routes
	$(PYPI2RPM) --dist-dir=$(CURDIR)/rpms simplejson
	$(PYPI2RPM) --dist-dir=$(CURDIR)/rpms mysql-python
	$(PYPI2RPM) --dist-dir=$(CURDIR)/rpms sqlalchemy
	cd deps/server-core; rm -rf build; ../../$(PYTHON) setup.py --command-packages=pypi2rpm.command bdist_rpm2 --spec-file=Services.spec --dist-dir=$(CURDIR)/rpms
	$(PYTHON) setup.py --command-packages=pypi2rpm.command bdist_rpm2 --spec-file=AppKeys.spec --dist-dir=$(CURDIR)/rpms

 install:
	cd rpms; yum install *.rpm