diff --git a/makefile b/makefile index bb36e48..5698a06 100644 --- a/makefile +++ b/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)" diff --git a/irc.svg b/public/irc.svg similarity index 100% rename from irc.svg rename to public/irc.svg diff --git a/main.css b/public/main.css similarity index 100% rename from main.css rename to public/main.css diff --git a/midgard.jpg b/public/midgard.jpg similarity index 100% rename from midgard.jpg rename to public/midgard.jpg diff --git a/rss.svg b/public/rss.svg similarity index 100% rename from rss.svg rename to public/rss.svg