From: Explorer09 Date: Mon, 12 Mar 2018 02:34:36 +0000 (+0800) Subject: build: Add "-f" flag to "mv" in makefiles. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6a6e69af761801aedeab0264246772cf60810246;p=flex build: Add "-f" flag to "mv" in makefiles. Signed-off-by: Kang-Che Sung --- diff --git a/src/Makefile.am b/src/Makefile.am index ab71e27..e033cc8 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -98,7 +98,7 @@ MAINTAINERCLEANFILES = skel.c skel.c: flex.skl mkskel.sh flexint_shared.h tables_shared.h tables_shared.c $(SHELL) $(srcdir)/mkskel.sh $(srcdir) $(m4) $(VERSION) > $@.tmp - mv $@.tmp $@ + mv -f $@.tmp $@ if ENABLE_BOOTSTRAP stage1scan.c: scan.l stage1flex$(EXEEXT) @@ -111,7 +111,7 @@ endif dist-hook: scan.l flex$(EXEEXT) chmod u+w $(distdir) && \ ./flex$(EXEEXT) -o scan.c $< && \ - mv scan.c $(distdir) + mv -f scan.c $(distdir) # make needs to be told to make parse.h so that parallelized runs will # not fail.