-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (22 loc) · 1.03 KB
/
Makefile
File metadata and controls
35 lines (22 loc) · 1.03 KB
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
all: bin/django
help:
@echo 'make ubuntu install the necessary system packages (requires sudo)'
@echo 'make set up the development environment'
@echo 'make run start the web server'
@echo 'make test run project test suite'
@echo 'make tags build ctags file'
ubuntu:
sudo apt-get update
sudo apt-get -y build-dep python-psycopg2
sudo apt-get -y install build-essential python-dev exuberant-ctags
run: bin/django ; bin/django runserver
test: bin/django
bin/coverage run --source=voting bin/django test --settings=voting.settings.testing --nologcapture
tags: bin/django ; bin/ctags -v --tag-relative
buildout.cfg: ; ./scripts/genconfig.py config/env/development.cfg
bin/pip: ; virtualenv --no-site-packages --python=python3 .
bin/buildout: bin/pip ; $< install zc.buildout==2.3.1
mkdirs: var/www/static var/www/media
var/www/static var/www/media: ; mkdir -p $@
bin/django: bin/buildout buildout.cfg $(wildcard config/*.cfg) $(wildcard config/env/*.cfg) mkdirs ; $<
.PHONY: all help run mkdirs tags