From 3ba6a0508da77173e55712ecfa9a9ffb3b498473 Mon Sep 17 00:00:00 2001 From: Wen Kokke Date: Wed, 15 Jul 2020 17:12:42 +0100 Subject: [PATCH] Fix Makefile. --- Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index ff5c8c86..3d60511b 100644 --- a/Makefile +++ b/Makefile @@ -59,7 +59,6 @@ build-incremental: $(MARKDOWN_FILES) build-history: latest/ $(RELEASES) latest/: $(addprefix .versions/plfa.github.io-web-,$(addsuffix /,$(LATEST_VERSION))) - $(SEDI) "s/branch: dev/branch: dev-$(LATEST_VERSION)/" $(addsuffix _config.yml,$<) cd $< \ && $(JEKYLL) clean \ && $(JEKYLL) build --destination '../../latest' --baseurl '/latest' @@ -79,18 +78,18 @@ $$(tmp_zip): @mkdir -p .versions/ wget -c $$(url) -O $$(tmp_zip) +$$(tmp_dir): version = $(1) $$(tmp_dir): tmp_dir = $(addprefix .versions/plfa.github.io-web-,$(addsuffix /,$(1))) $$(tmp_dir): tmp_zip = $(addprefix .versions/plfa.github.io-web-,$(addsuffix .zip,$(1))) $$(tmp_dir): $$(tmp_zip) yes | unzip -qq $$(tmp_zip) -d .versions/ + $(SEDI) "s/branch: dev/branch: dev-$$(version)/" $$(addsuffix _config.yml,$$(tmp_dir)) -$$(out): version = $(1) $$(out): out = $(addsuffix /,$(1)) $$(out): url = $(addprefix https://github.com/plfa/plfa.github.io/archive/web-,$(addsuffix .zip,$(1))) $$(out): tmp_dir = $(addprefix .versions/plfa.github.io-web-,$(addsuffix /,$(1))) $$(out): baseurl = $(addprefix /,$(1)) $$(out): $$(tmp_dir) - $(SEDI) "s/branch: dev/branch: dev-$$(version)/" $$(addsuffix _config.yml,$$(tmp_dir)) cd $$(tmp_dir) \ && rm -rf _posts \ && $(JEKYLL) clean \