bit of Makefile reorganization

This commit is contained in:
James Vasile 2013-02-07 16:41:38 -05:00
parent c976b1a00c
commit ce34a5eaa8

View File

@ -1,6 +1,4 @@
#SHELL := /bin/bash
MAKE=make MAKE=make
BUILDDIR = vendor
CSS=$(wildcard *.css) CSS=$(wildcard *.css)
CSS=$(subst .tiny,,$(shell find themes -type f -name '*.css')) CSS=$(subst .tiny,,$(shell find themes -type f -name '*.css'))
@ -8,12 +6,9 @@ COMPRESSED_CSS := $(patsubst %.css,%.tiny.css,$(CSS))
PWD=`pwd` PWD=`pwd`
## Catch-all tagets ## Catch-all tagets
default: predepend config dirs template css docs dbs $(BUILDDIR)/exmachina #$(BUILDDIR)/bjsonrpc default: predepend config dirs template css docs dbs
all: default all: default
build:
@mkdir -p $(BUILDDIR)
predepend: predepend:
sudo sh -c "apt-get install augeas-tools python-bjsonrpc python-augeas python-simplejson pandoc python-cheetah python-cherrypy3" sudo sh -c "apt-get install augeas-tools python-bjsonrpc python-augeas python-simplejson pandoc python-cheetah python-cherrypy3"
git submodule init git submodule init
@ -56,6 +51,7 @@ data/users.sqlite3: data/users.sqlite3.distrib
dirs: dirs:
@mkdir -p data/cherrypy_sessions @mkdir -p data/cherrypy_sessions
@mkdir -p vendor
config: Makefile config: Makefile
@test -f plinth.config || cp plinth.sample.config plinth.config @test -f plinth.config || cp plinth.sample.config plinth.config