Website/Makefile

23 lines
559 B
Makefile
Raw Normal View History

2015-12-02 18:21:44 -05:00
BIO_DIR := ~/Documents/Administrivia/Bios
2015-12-02 18:21:44 -05:00
all:
node build.js
fetch:
@if [ -f $(BIO_DIR)/Rakefile ] ; then \
echo "Building JSON"; \
rake -f $(BIO_DIR)/Rakefile -E "Dir.chdir(File.expand_path '$(BIO_DIR)')" okennedy.json;\
cp $(BIO_DIR)/okennedy.json src/metadata/;\
else\
echo "Fetching JSON";\
cd src/metadata;\
curl -O http://www.cse.buffalo.edu/~okennedy/okennedy.json;\
fi
2015-12-04 22:42:41 -05:00
push: fetch all
2015-12-04 12:10:33 -05:00
find . -name .DS_Store | xargs rm
rsync -avz -e ssh --safe-links --progress site/ gram:/var/www/static/
2015-12-02 18:21:44 -05:00
2015-12-04 12:10:33 -05:00
.PHONY: all fetch push