Make rule for assets
This commit is contained in:
parent
437cdd9cf0
commit
62b1cabdd5
5 changed files with 5 additions and 2 deletions
7
makefile
7
makefile
|
@ -3,9 +3,9 @@ BUILD_DIR = /home/ruben/dwn/midgard
|
|||
BLOG ::= $(sort $(wildcard blog/*.md))
|
||||
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)
|
||||
./do_index.py "index.html" "$@"
|
||||
|
@ -16,5 +16,8 @@ $(BUILD_DIR)/%.html: $(BUILD_DIR) do_blog.py %.md
|
|||
$(BUILD_DIR):
|
||||
mkdir -p "$@"
|
||||
|
||||
public:
|
||||
cp -rt "$(BUILD_DIR)" public/.
|
||||
|
||||
clean:
|
||||
rm -rf "$(OUTPUT)" "$(BUILD_DIR)"
|
||||
|
|
Before Width: | Height: | Size: 630 B After Width: | Height: | Size: 630 B |
Before Width: | Height: | Size: 86 KiB After Width: | Height: | Size: 86 KiB |
Before Width: | Height: | Size: 600 B After Width: | Height: | Size: 600 B |
Loading…
Reference in a new issue