From bf86930f24de188dbc7a4183e2b52fe93444ee36 Mon Sep 17 00:00:00 2001 From: Oliver Wegner Date: Thu, 16 Apr 2015 23:28:50 +0200 Subject: [PATCH] added Makefile --- Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4a833da --- /dev/null +++ b/Makefile @@ -0,0 +1,14 @@ +LESS=$(shell which lessc) +COFFEE=$(shell which coffee) + +all: coffee less + +coffee: public/js/*.coffee + $(COFFEE) -c public/js/*.coffee + +less: public/css/*.less + for IF in $^; do \ + OF=$$(dirname $$IF)/$$(basename -s .less $$IF).css; \ + $(LESS) $$IF >$$OF; \ + done +