Use $(@D) instead of $(dir $@)

This commit is contained in:
Midgard 2020-06-11 01:57:52 +02:00
parent 1f45d1dc09
commit 58d3d29bb9
Signed by untrusted user who does not match committer: midgard
GPG key ID: 511C112F1331BBB4

View file

@ -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: