Website/Makefile

27 lines
687 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:
2015-12-16 12:39:48 -05:00
@echo Retrieving Website Repo Head
2015-12-15 11:11:06 -05:00
@git pull
@if [ -f $(BIO_DIR)/Rakefile ] ; then \
2015-12-08 08:58:28 -05:00
echo "Fetching Updates"; \
2015-12-11 08:28:08 -05:00
/bin/bash -c "cd $(BIO_DIR); pwd; git pull;"\
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