aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/makefile b/makefile
index 95b7666..77c6e51 100644
--- a/makefile
+++ b/makefile
@@ -14,8 +14,11 @@ GEMS = Gemfile.lock
POSTS := $(wildcard _items/*)
POST_META := $(patsubst _items/%.md,_data/post/%.yml,$(POSTS))
+REPO_META := _data/meta.yml
-build: $(GEMS) $(POST_META) FORCE
+META := $(POST_META) $(REPO_META)
+
+build: $(GEMS) $(META) FORCE
bundle exec jekyll build $(JEKYLL_BUILD_ARGS)
$(GEMS): Gemfile
@@ -25,6 +28,10 @@ _data/post/%.yml: _items/%.md
@mkdir -p _data/post
_scripts/postinfo $< > $@
+$(REPO_META):
+ @mkdir -p _data/post
+ _scripts/repoinfo > $@
+
clean: FORCE
$(RM) -r $(WEBROOT)