Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Initial import
- Loading branch information
digehode
committed
Aug 13, 2020
0 parents
commit 9a0250b548633633e086d8d3a49ea9df4e242fd7
Showing
5 changed files
with
696 additions
and
0 deletions.
There are no files selected for viewing
36
Makefile
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
INVENV = $(shell pip3 -V | grep 'venv') | ||
current_dir = $(shell pwd) | ||
|
||
chb.pdf: chb_pp.md headings.tex | ||
pandoc chb_pp.md -s -o chb.pdf | ||
|
||
chb.tex: chb_pp.md | ||
pandoc chb_pp.md -s -o chb.tex | ||
|
||
|
||
chb_pp.md: chb.yml chb.md | ||
jinja2 chb.md chb.yml > chb_pp.md | ||
|
||
|
||
clean: | ||
-rm ./chb_pp.md chb.pdf | ||
|
||
|
||
prereqs: venvcheck FORCE | ||
pip install -r requirements.txt | ||
|
||
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: |
Oops, something went wrong.