Website/Makefile

21 lines
432 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-02 18:21:44 -05:00
.PHONY: all fetch