2013-03-10 18:28:50 +01:00
|
|
|
STATIC = static
|
|
|
|
STATIC_CSS = $(STATIC)/css
|
2013-03-10 20:17:16 +01:00
|
|
|
STATIC_JS = $(STATIC)/js
|
2013-03-10 18:28:50 +01:00
|
|
|
|
|
|
|
|
2013-03-10 20:20:27 +01:00
|
|
|
all: hello build
|
|
|
|
|
|
|
|
|
|
|
|
hello:
|
|
|
|
@cowsay 'Welcome to Hy!'
|
2013-03-10 18:28:50 +01:00
|
|
|
|
|
|
|
|
2013-03-10 21:10:06 +01:00
|
|
|
build: clean css js
|
2013-03-10 19:20:09 +01:00
|
|
|
|
2013-03-10 21:13:17 +01:00
|
|
|
|
2013-03-10 21:10:06 +01:00
|
|
|
css: less
|
|
|
|
cp css/* $(STATIC_CSS)
|
|
|
|
|
2013-03-10 21:13:17 +01:00
|
|
|
|
2013-03-10 21:10:06 +01:00
|
|
|
js: coffee
|
|
|
|
cp js/* $(STATIC_JS)
|
2013-03-10 20:17:16 +01:00
|
|
|
|
2013-03-10 21:13:17 +01:00
|
|
|
|
2013-03-10 19:20:09 +01:00
|
|
|
less:
|
2013-03-10 20:17:16 +01:00
|
|
|
make -C less
|
|
|
|
mv less/*css $(STATIC_CSS)
|
|
|
|
|
2013-03-10 18:28:50 +01:00
|
|
|
|
2013-03-10 19:20:09 +01:00
|
|
|
coffee:
|
2013-03-10 20:17:16 +01:00
|
|
|
make -C coffee
|
|
|
|
mv coffee/*js $(STATIC_JS)
|
2013-03-10 18:28:50 +01:00
|
|
|
|
2013-03-10 21:13:17 +01:00
|
|
|
|
2013-03-10 18:28:50 +01:00
|
|
|
clean:
|
2013-03-10 21:13:17 +01:00
|
|
|
rm -f $(STATIC_CSS) $(STATIC_JS)
|
|
|
|
mkdir -p $(STATIC_CSS) $(STATIC_JS)
|
|
|
|
|
2013-03-10 18:28:50 +01:00
|
|
|
|
2013-03-10 20:30:49 +01:00
|
|
|
devel:
|
|
|
|
@./devel.sh
|
2013-03-10 18:28:50 +01:00
|
|
|
|
2013-03-10 21:13:17 +01:00
|
|
|
|
2013-03-10 20:30:49 +01:00
|
|
|
.PHONY: build clean less coffee devel
|