From ef73bc2bd440c2c73ed4c6e27ec97d7ac22198da Mon Sep 17 00:00:00 2001 From: Wolfram Sang Date: Thu, 11 Feb 2021 16:34:16 +0100 Subject: Makefile: force symlinks to allow rebuilding Currently, "make -B" to rebuild everything fails because the symlinks are already there. Force them to allow the rebuild. Signed-off-by: Wolfram Sang Reviewed-by: Laurent Pinchart Acked-by: Kuninori Morimoto --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index e609c15..4b38343 100644 --- a/Makefile +++ b/Makefile @@ -25,7 +25,7 @@ all: wiki/Chat_log.wiki .git/hooks/pre-commit @make -s index.html .git/hooks/pre-commit: - @ln -s ../../scripts/pre-commit.sh .git/hooks/pre-commit + @ln -sf ../../scripts/pre-commit.sh .git/hooks/pre-commit wiki/Chat_log.wiki: wiki/Chat_log @echo $@ @@ -33,14 +33,14 @@ wiki/Chat_log.wiki: wiki/Chat_log scripts/schedule.py: projects/schedule.py @echo $@ - @ln -s ../projects/schedule.py $@ + @ln -sf ../projects/schedule.py $@ html/schedule.html: projects/schedule.py scripts/schedule.py @echo $@ @./scripts/timesheet.py > $@ index.html: - @ln html/index.html . + @ln -f html/index.html . ${HTMLDIR} ${WIKIDIR}: mkdir -p $@ -- cgit v1.2.3