summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2021-02-11 16:34:16 +0100
committerWolfram Sang <wsa+renesas@sang-engineering.com>2021-02-12 11:44:53 +0100
commitef73bc2bd440c2c73ed4c6e27ec97d7ac22198da (patch)
tree4a07effc9b0dfc0a6ea4e497d23ec25455390c79 /Makefile
parent0f5fc51afb7d9edadb332275b171187e6474f144 (diff)
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 <wsa+renesas@sang-engineering.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files 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 $@