Make rule for assets

This commit is contained in:
Midgard 2020-06-02 02:55:24 +02:00
parent 437cdd9cf0
commit 62b1cabdd5
Signed by untrusted user who does not match committer: midgard
GPG key ID: 511C112F1331BBB4
5 changed files with 5 additions and 2 deletions

View file

@ -3,9 +3,9 @@ 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)
.PHONY: clean .PHONY: clean public
all: $(BUILD_DIR)/index.html $(BLOG_HTML) all: $(BUILD_DIR)/index.html public $(BLOG_HTML)
$(BUILD_DIR)/index.html: $(BUILD_DIR) do_index.py index.html $(BLOG) $(BUILD_DIR)/index.html: $(BUILD_DIR) do_index.py index.html $(BLOG)
./do_index.py "index.html" "$@" ./do_index.py "index.html" "$@"
@ -16,5 +16,8 @@ $(BUILD_DIR)/%.html: $(BUILD_DIR) do_blog.py %.md
$(BUILD_DIR): $(BUILD_DIR):
mkdir -p "$@" mkdir -p "$@"
public:
cp -rt "$(BUILD_DIR)" public/.
clean: clean:
rm -rf "$(OUTPUT)" "$(BUILD_DIR)" rm -rf "$(OUTPUT)" "$(BUILD_DIR)"

View file

Before

Width:  |  Height:  |  Size: 630 B

After

Width:  |  Height:  |  Size: 630 B

View file

Before

Width:  |  Height:  |  Size: 86 KiB

After

Width:  |  Height:  |  Size: 86 KiB

View file

Before

Width:  |  Height:  |  Size: 600 B

After

Width:  |  Height:  |  Size: 600 B