Use $(@D) instead of $(dir $@)
This commit is contained in:
parent
1f45d1dc09
commit
58d3d29bb9
1 changed files with 3 additions and 2 deletions
5
makefile
5
makefile
|
@ -10,14 +10,15 @@ PYTHON ::= venv/bin/python
|
|||
all: $(BUILD_DIR)/index.html $(BUILD_DIR)/syntax.css public $(BLOG_HTML)
|
||||
|
||||
$(BUILD_DIR)/index.html: index.html $(BLOG) do_blog.py
|
||||
@mkdir -p "$(dir $@)"
|
||||
@mkdir -p "$(@D)"
|
||||
$(PYTHON) do_blog.py --index "$<" "$@"
|
||||
|
||||
$(BUILD_DIR)/blog/%.html: blog/%.md blog.html do_blog.py
|
||||
@mkdir -p "$(dir $@)"
|
||||
@mkdir -p "$(@D)"
|
||||
$(PYTHON) do_blog.py "$<" "$@"
|
||||
|
||||
$(BUILD_DIR)/syntax.css: makefile
|
||||
@mkdir -p "$(@D)"
|
||||
$(PYTHON) -m pygments -S rainbow_dash -f html > "$@"
|
||||
|
||||
public:
|
||||
|
|
Loading…
Reference in a new issue