This repository has been archived on 2024-11-04. You can view files and clone it, but cannot push or open issues or pull requests.
cs763/website/Makefile

31 lines
746 B
Makefile

DEPLOY_HOST=wisc
ARCHIVE_HOST=jackknife
DEPLOY=/u/j/u/justhsu/public/html-s/teaching/current/cs763
ARCHIVE=/home/justhsu/teaching/f20/cs763
build:
make assets && mkdocs build
preview:
make assets && mkdocs serve
assets:
(cd docs/resources/slides; make)
install:
pip install mkdocs mkdocs-material pymdown-extensions
(cabal new-update && cabal new-install pandoc)
deploy:
make build
find . -type d -exec chmod a+rx {} \;
find . -type f -exec chmod a+r {} \;
# ssh jackknife 'mkdir -p html/staging/cs763'
rsync -avzp --relative $(DEPLOY) -e ssh ./site/ $(DEPLOY_HOST)
archive:
make build
find . -type d -exec chmod a+rx {} \;
find . -type f -exec chmod a+r {} \;
rsync -avzp --relative $(ARCHIVE) -e ssh ./site/ $(ARCHIVE_HOST)