Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
chromebook/Makefile
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
37 lines (26 sloc)
890 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INVENV = $(shell pip3 -V | grep 'venv') | |
current_dir = $(shell pwd) | |
MKDOCS_PORT=8008 | |
build: | |
# cd docs/assessment/cw1 && remarkable -d ../ -t cwTemplate.jinja2 cw1_brief.md | |
# cd docs/assessment/cw2 && remarkable -d ../ -t cwTemplate.jinja2 cw2_brief.md | |
# cd docs/assessment/resit && remarkable -d ../ -t cwTemplate.jinja2 cw1_resit_brief.md && remarkable -d ../ -t cwTemplate.jinja2 cw2_resit_brief.md | |
mkdocs build --clean | |
serve: | |
mkdocs serve --dev-addr localhost:$(MKDOCS_PORT) | |
publish: | |
mkdocs gh-deploy --config-file ./mkdocs.yml --remote-branch gh-pages | |
clean: | |
rm -rf ./site | |
prereqs: venvcheck FORCE | |
pip install -r requirements.txt | |
#cd reMarkAble && python setup.py install | |
venv: FORCE | |
python3 -m venv venv | |
venvcheck: | |
ifeq ($(INVENV),) | |
$(error You should only run this from within the venv. Use '. ./venv/bin/activate') | |
else | |
@echo "venv check passed\n" | |
endif | |
FORCE: |