Always use the Python in venv
This commit is contained in:
parent
cd6e8751dd
commit
c59205afa3
1 changed files with 4 additions and 2 deletions
6
makefile
6
makefile
|
@ -3,15 +3,17 @@ BUILD_DIR = /home/ruben/dwn/midgard
|
||||||
BLOG ::= $(sort $(wildcard blog/*.md))
|
BLOG ::= $(sort $(wildcard blog/*.md))
|
||||||
BLOG_HTML ::= $(BLOG:%.md=$(BUILD_DIR)/%.html)
|
BLOG_HTML ::= $(BLOG:%.md=$(BUILD_DIR)/%.html)
|
||||||
|
|
||||||
|
PYTHON ::= venv/bin/python
|
||||||
|
|
||||||
.PHONY: clean public
|
.PHONY: clean public
|
||||||
|
|
||||||
all: $(BUILD_DIR)/index.html public $(BLOG_HTML)
|
all: $(BUILD_DIR)/index.html public $(BLOG_HTML)
|
||||||
|
|
||||||
$(BUILD_DIR)/index.html: index.html $(BLOG) do_index.py $(BUILD_DIR)
|
$(BUILD_DIR)/index.html: index.html $(BLOG) do_index.py $(BUILD_DIR)
|
||||||
./do_index.py "$<" "$@"
|
$(PYTHON) do_index.py "$<" "$@"
|
||||||
|
|
||||||
$(BUILD_DIR)/blog/%.html: blog/%.md blog.html do_blog.py $(BUILD_DIR)/blog
|
$(BUILD_DIR)/blog/%.html: blog/%.md blog.html do_blog.py $(BUILD_DIR)/blog
|
||||||
./do_blog.py "$<" "$@"
|
$(PYTHON) do_blog.py "$<" "$@"
|
||||||
|
|
||||||
$(BUILD_DIR):
|
$(BUILD_DIR):
|
||||||
mkdir -p "$@"
|
mkdir -p "$@"
|
||||||
|
|
Loading…
Reference in a new issue