Fix Makefile.
This commit is contained in:
parent
7dd0479994
commit
3ba6a0508d
1 changed files with 2 additions and 3 deletions
5
Makefile
5
Makefile
|
@ -59,7 +59,6 @@ build-incremental: $(MARKDOWN_FILES)
|
||||||
build-history: latest/ $(RELEASES)
|
build-history: latest/ $(RELEASES)
|
||||||
|
|
||||||
latest/: $(addprefix .versions/plfa.github.io-web-,$(addsuffix /,$(LATEST_VERSION)))
|
latest/: $(addprefix .versions/plfa.github.io-web-,$(addsuffix /,$(LATEST_VERSION)))
|
||||||
$(SEDI) "s/branch: dev/branch: dev-$(LATEST_VERSION)/" $(addsuffix _config.yml,$<)
|
|
||||||
cd $< \
|
cd $< \
|
||||||
&& $(JEKYLL) clean \
|
&& $(JEKYLL) clean \
|
||||||
&& $(JEKYLL) build --destination '../../latest' --baseurl '/latest'
|
&& $(JEKYLL) build --destination '../../latest' --baseurl '/latest'
|
||||||
|
@ -79,18 +78,18 @@ $$(tmp_zip):
|
||||||
@mkdir -p .versions/
|
@mkdir -p .versions/
|
||||||
wget -c $$(url) -O $$(tmp_zip)
|
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_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 = $(addprefix .versions/plfa.github.io-web-,$(addsuffix .zip,$(1)))
|
||||||
$$(tmp_dir): $$(tmp_zip)
|
$$(tmp_dir): $$(tmp_zip)
|
||||||
yes | unzip -qq $$(tmp_zip) -d .versions/
|
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): out = $(addsuffix /,$(1))
|
||||||
$$(out): url = $(addprefix https://github.com/plfa/plfa.github.io/archive/web-,$(addsuffix .zip,$(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): tmp_dir = $(addprefix .versions/plfa.github.io-web-,$(addsuffix /,$(1)))
|
||||||
$$(out): baseurl = $(addprefix /,$(1))
|
$$(out): baseurl = $(addprefix /,$(1))
|
||||||
$$(out): $$(tmp_dir)
|
$$(out): $$(tmp_dir)
|
||||||
$(SEDI) "s/branch: dev/branch: dev-$$(version)/" $$(addsuffix _config.yml,$$(tmp_dir))
|
|
||||||
cd $$(tmp_dir) \
|
cd $$(tmp_dir) \
|
||||||
&& rm -rf _posts \
|
&& rm -rf _posts \
|
||||||
&& $(JEKYLL) clean \
|
&& $(JEKYLL) clean \
|
||||||
|
|
Loading…
Reference in a new issue