23 lines
553 B
Makefile
23 lines
553 B
Makefile
|
|
BIO_DIR := ~/Documents/Administrivia/Bios
|
|
|
|
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
|
|
|
|
push: all
|
|
find . -name .DS_Store | xargs rm
|
|
rsync -avz -e ssh --safe-links --progress site/ gram:/var/www/static/
|
|
|
|
|
|
.PHONY: all fetch push |