Fixed Makefile to error out when libraries not installed correctly.
Update .gitignore to ignore that frippin' YAML file. Hate that damn thing.
This commit is contained in:
parent
fdf2b4367d
commit
7033753dc7
|
@ -10,3 +10,4 @@ npm-debug.log
|
||||||
work/*
|
work/*
|
||||||
htdocs/*.*
|
htdocs/*.*
|
||||||
htdocs/lib
|
htdocs/lib
|
||||||
|
package.yml
|
||||||
|
|
17
Makefile
17
Makefile
|
@ -10,7 +10,10 @@ COFFEE= ./node_modules/coffee-script/bin/coffee
|
||||||
LIBS:= htdocs/lib/underscore.js htdocs/lib/jquery.js htdocs/lib/backbone.js
|
LIBS:= htdocs/lib/underscore.js htdocs/lib/jquery.js htdocs/lib/backbone.js
|
||||||
|
|
||||||
all: htdocs/index.html htdocs/store.js htdocs/jsonstore.css htdocs/data/items.json
|
all: htdocs/index.html htdocs/store.js htdocs/jsonstore.css htdocs/data/items.json
|
||||||
@if [ ! -e "./htdocs/lib" ]; then echo "Please do 'make setup' before continuing"; fi
|
@if [ ! -e "./htdocs/lib" ]; then \
|
||||||
|
echo "Please do 'make setup' before continuing"; \
|
||||||
|
exit 1; \
|
||||||
|
fi
|
||||||
|
|
||||||
serve: all
|
serve: all
|
||||||
$(COFFEE) ./bin/autoreload
|
$(COFFEE) ./bin/autoreload
|
||||||
|
@ -70,9 +73,13 @@ work/store.coffee: work src/backbonestore.nw
|
||||||
done
|
done
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
- rm -f docs/*.tex docs/*.dvi docs/*.aux docs/*.toc docs/*.log docs/*.out htdocs/*.html htdocs/*.js htdocs/*.css
|
- rm -f htdocs/*.* docs/*.tex docs/*.dvi docs/*.aux docs/*.toc docs/*.log docs/*.out
|
||||||
|
- rm -fr ./work
|
||||||
|
|
||||||
|
distclean: clean
|
||||||
|
- rm -fr ./htdocs/lib
|
||||||
|
|
||||||
|
realclean: distclean
|
||||||
|
- rm -fr docs
|
||||||
|
|
||||||
realclean: clean
|
|
||||||
- rm -f docs/*.pdf
|
|
||||||
- rm -fr work htdocs
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue