From 7a907e2a3ac801eacefb3bd3d1b9eb3c94ef90cd Mon Sep 17 00:00:00 2001 From: Paul Tagliamonte Date: Mon, 11 Mar 2013 08:46:09 -0400 Subject: [PATCH] add dep checking. --- site/Makefile | 9 +++++++-- site/dependencies | 3 +++ 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 site/dependencies diff --git a/site/Makefile b/site/Makefile index 224ef46..1e89d3a 100644 --- a/site/Makefile +++ b/site/Makefile @@ -3,7 +3,7 @@ STATIC_CSS = $(STATIC)/css STATIC_JS = $(STATIC)/js -all: hello build +all: hello deps build hello: @@ -32,12 +32,17 @@ coffee: clean: - rm -f $(STATIC_CSS) $(STATIC_JS) + rm -fr $(STATIC_CSS) $(STATIC_JS) mkdir -p $(STATIC_CSS) $(STATIC_JS) devel: @./devel.sh +deps: + set -e; for x in $(shell cat dependencies); do \ + echo "Checking for dependency: $$x"; \ + dpkg-query -s $$x >/dev/null 2>&1; \ + done; .PHONY: build clean less coffee devel diff --git a/site/dependencies b/site/dependencies new file mode 100644 index 0000000..cd613a7 --- /dev/null +++ b/site/dependencies @@ -0,0 +1,3 @@ +coffeescript +node-uglify +node-less