summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTom Galloway <github@tomgalloway.co.uk>2013-01-03 15:08:06 +0000
committerTom Galloway <github@tomgalloway.co.uk>2013-01-03 15:08:06 +0000
commitb2c157ec1dafe4d5d5f35545b18161ee707d3767 (patch)
treef8524618132a7a52e8e432c6a481041ffe3d2e27 /Makefile
parentfed5bd13f1bdb5c1359c96512fd91e1dd445a9be (diff)
Added predepend packages and updated python path for build folders.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 17 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3afdbcf..cf10e97 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,6 @@
#SHELL := /bin/bash
MAKE=make
+BUILD_DIR = build
#TODO: add install target
@@ -9,9 +10,22 @@ COMPRESSED_CSS := $(patsubst %.css,%.tiny.css,$(CSS))
PWD=`pwd`
## Catch-all tagets
-default: cfg cherrypy.config dirs template css docs dbs
+default: predepend cfg cherrypy.config dirs template css docs dbs $(BUILD_DIR)/exmachina $(BUILD_DIR)/bjsonrpc
all: default
+build:
+ mkdir -p $(BUILD_DIR)
+
+predepend:
+ sudo sh -c "apt-get install augeas-tools python-bjsonrpc python-augeas python-simplejson"
+ touch predepend
+
+$(BUILD_DIR)/exmachina: build
+ git clone git://github.com/bnewbold/exmachina $(BUILD_DIR)/exmachina
+
+$(BUILD_DIR)/bjsonrpc: build
+ git clone git://github.com/deavid/bjsonrpc.git $(BUILD_DIR)/bjsonrpc
+
dbs: data/users.sqlite3
data/users.sqlite3: data/users.sqlite3.distrib
@@ -69,3 +83,5 @@ clean:
@find . -name "*.bak" -exec rm {} \;
@$(MAKE) -s -C doc clean
@$(MAKE) -s -C templates clean
+ rm -rf build
+ rm -f predepend