49 lines
624 B
Makefile
49 lines
624 B
Makefile
STATIC = static
|
|
STATIC_CSS = $(STATIC)/css
|
|
STATIC_JS = $(STATIC)/js
|
|
|
|
|
|
all: hello deps build
|
|
|
|
|
|
hello:
|
|
@cowsay 'Welcome to Hy!'
|
|
|
|
|
|
build: clean css js
|
|
|
|
|
|
css: less
|
|
cp -rv css/* $(STATIC_CSS)
|
|
|
|
|
|
js: coffee
|
|
cp -rv js/* $(STATIC_JS)
|
|
|
|
|
|
less:
|
|
make -C less
|
|
mv -v less/*css $(STATIC_CSS)
|
|
|
|
|
|
coffee:
|
|
make -C coffee
|
|
mv -v coffee/*js $(STATIC_JS)
|
|
|
|
|
|
clean:
|
|
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
|