From 64d2fcf1fbefd598706c3c6279ca92d1ce3f50fd Mon Sep 17 00:00:00 2001 From: Kuninori Morimoto Date: Thu, 27 May 2021 14:05:19 +0900 Subject: Makefile: always remake index.html Current implementation doesn't update index.html even though menu and/or subindex were updated. Thus, browser uses old index.html, and we will miss new menu. This patch always remakes index.html to solve it. This patch also use "ln -sf" instead of "ln -f" for it. Signed-off-by: Kuninori Morimoto --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4b38343..46bf703 100644 --- a/Makefile +++ b/Makefile @@ -11,6 +11,7 @@ NOPARAM = subindex body index BSP = bsp41x bsp39x all: wiki/Chat_log.wiki .git/hooks/pre-commit + @rm -fr index.html html/index.html @make -s ${HTMLDIR} ${WIKIDIR} @make -s LISTS="${MEMBER}" TARGET=finds EXP1=member EXP2=-a loop @make -s LISTS="${STATUS}" TARGET=finds EXP1=status EXP2=-s loop @@ -40,7 +41,7 @@ html/schedule.html: projects/schedule.py scripts/schedule.py @./scripts/timesheet.py > $@ index.html: - @ln -f html/index.html . + @ln -sf html/index.html . ${HTMLDIR} ${WIKIDIR}: mkdir -p $@ -- cgit v1.2.3