default: build all: update build sitename = disinclined.org hostname = disinclined.org .ONESHELL: update: eval "$$(ssh-agent -s)" ssh-add ~/.ssh/id_rsa git submodule update --remote eval "$$(ssh-agent -k)" build site: cp resume/resume.{pdf,html} . bundle exec jekyll build -d $(sitename) --trace serve: bundle exec jekyll serve --trace --verbose --livereload upgrade: bundle update deploy: tar -czf $(sitename).tgz $(sitename) scp $(sitename).tgz $(hostname): ssh -t $(hostname) tar -xf $(sitename).tgz ssh -t $(hostname) sudo rsync -a ~dylan/$(sitename) /srv/http/ rm $(sitename).tgz