Commit 4f949930 authored by Kevin Abel's avatar Kevin Abel
Browse files

Add the built database file to the Makefile

The application will build it if necessary, but we should save time by
doing in ahead of the first request.
parent 28a26cfa
SHELL := /bin/bash
CURL := curl
PHP := php
# NodeJS Find/Install
NODE_PATH = $(shell ./find-node-or-install)
......@@ -23,16 +24,27 @@ WDN_MIXINS := \
WDN_LIB_RAW = https://raw.githubusercontent.com/unl/wdntemplates/master/wdn/templates_4.0/less/_mixins/
LESSHAT_RAW = https://raw.githubusercontent.com/csshat/lesshat/c8c211b2442734bfc1ae2509ff0ccebdc2e73664/build/lesshat.less
# Database related CSV
DB_DPBS = \
data/csv/all_buildings.csv \
data/csv/additional_buildings.csv \
data/csv/artists.csv \
data/csv/sculptures.csv \
data/csv/artists_sculptures.csv
# Built Files
CSS_OBJ = www/css/map.css
JS_OBJ = www/js/map.min.js
DB_OBJ = data/db/map.db
all: less js
all: less js db
less: $(CSS_OBJ)
js: $(JS_OBJ)
db: $(DB_OBJ)
clean:
rm -r $(NODE_DIR)
rm -r $(LESS_LIB)
......@@ -59,4 +71,7 @@ $(UGLIFYJS):
$(JS_OBJ): www/js/map.js $(UGLIFYJS)
$(UGLIFYJS) -c -m -o $@ -p 2 --source-map $(<).map --source-map-url $(<F).map $<
.PHONY: all less js clean
$(DB_OBJ): $(DB_DEPS)
$(PHP) scripts/rebuildDatabase.php
.PHONY: all less js db clean
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment