소스 검색

Ensure docs makefile downloads theme if failed before. (#3322)

The makefile did not download the theme if the directory "themes/gitea"
is there, even if empty.
On a fresh Ubuntu install, curl is not included, so the theme rule fails
just after creating the empty directory. When you try again after
installing curl, the rule is not triggered.

This could also happen if the download fails for other reasons.

This change makes the theme rule depend on the file "theme.toml"
which will be there only after unpacking a successfully downloaded
theme archive.

Signed-off-by: Alberto González Palomo <bugs@sentido-labs.com>
tags/v1.4.0-rc1
Alberto González Palomo 6 년 전
부모
커밋
18bb0f8f13
1개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 4
    3
      docs/Makefile

+ 4
- 3
docs/Makefile 파일 보기

@@ -24,6 +24,7 @@ build: $(THEME)
.PHONY: update
update: $(THEME)

$(THEME):
mkdir -p $@
curl -s $(ARCHIVE) | tar xz -C $@
$(THEME): $(THEME)/theme.toml
$(THEME)/theme.toml:
mkdir -p $$(dirname $@)
curl -s $(ARCHIVE) | tar xz -C $$(dirname $@)

Loading…
취소
저장