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:
Elf M. Sternberg 2016-04-15 15:48:59 -07:00
parent fdf2b4367d
commit 7033753dc7
2 changed files with 13 additions and 5 deletions

1
.gitignore vendored
View File

@ -10,3 +10,4 @@ npm-debug.log
work/* work/*
htdocs/*.* htdocs/*.*
htdocs/lib htdocs/lib
package.yml

View File

@ -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