1
1
mirror of https://github.com/varkor/quiver.git synced 2024-10-26 07:09:37 +03:00
quiver/Makefile
varkor 44232aa01a Add comments to the Makefile
Also add a Makefile script for pushing the quiver application to GitHub pages.
2019-05-11 14:48:31 +01:00

24 lines
523 B
Makefile

.PHONY: all gh-pages
# Ensure `cd` works properly by forcing everything to be executed in a single shell.
.ONESHELL:
# Build KaTeX.
all:
git submodule update --init --recursive
cd src/KaTeX
yarn
yarn build
# Update the quiver GitHub Pages application.
gh-pages:
git subtree push --prefix src origin pre-gh-pages
git worktree add ../quiver-worktree pre-gh-pages
cd ../quiver-worktree
git pull
git checkout gh-pages
git rebase pre-gh-pages
git push --force
cd ../quiver
git worktree remove ../quiver-worktree