hy/site/Makefile

49 lines
624 B
Makefile
Raw Normal View History

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-11 13:46:09 +01:00
all: hello deps build
2013-03-10 20:20:27 +01:00
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 -rv css/* $(STATIC_CSS)
2013-03-10 21:10:06 +01:00
2013-03-10 21:13:17 +01:00
2013-03-10 21:10:06 +01:00
js: coffee
cp -rv 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 -v less/*css $(STATIC_CSS)
2013-03-10 20:17:16 +01:00
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 -v 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-11 13:46:09 +01:00
rm -fr $(STATIC_CSS) $(STATIC_JS)
2013-03-10 21:13:17 +01:00
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-11 13:46:09 +01:00
deps:
set -e; for x in $(shell cat dependencies); do \
echo "Checking for dependency: $$x"; \
dpkg-query -s $$x >/dev/null 2>&1; \
done;
2013-03-10 21:13:17 +01:00
2013-03-10 20:30:49 +01:00
.PHONY: build clean less coffee devel