Skip to content

Commit 6df5360

Browse files
tpetazzonichrisbra
authored andcommitted
patch 9.1.2031: Makefile: cannot run make installinks twice
Problem: Makefile: cannot run make installinks twice Solution: Change "ln -s" to "ln -sf" to force creation of the symlinks (Thomas Petazzoni) Running "make installlinks" twice towards the same destination directory will fail, as symlink will already exist. This is not really expected as "make install" is normally expected to work again and again towards the same destination directory. Fix this by using ln -sf. closes: #19035 Signed-off-by: Thomas Petazzoni <[email protected]> Signed-off-by: Christian Brabandt <[email protected]>
1 parent 32b801a commit 6df5360

2 files changed

Lines changed: 14 additions & 12 deletions

File tree

src/Makefile

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2746,40 +2746,40 @@ installvimdiff: $(DEST_BIN)/$(VIMDIFFTARGET)
27462746
installgvimdiff: $(DEST_BIN)/$(GVIMDIFFTARGET)
27472747

27482748
$(DEST_BIN)/$(EXTARGET): $(DEST_BIN)
2749-
cd $(DEST_BIN); ln -s $(VIMTARGET) $(EXTARGET)
2749+
cd $(DEST_BIN); ln -sf $(VIMTARGET) $(EXTARGET)
27502750

27512751
$(DEST_BIN)/$(VIEWTARGET): $(DEST_BIN)
2752-
cd $(DEST_BIN); ln -s $(VIMTARGET) $(VIEWTARGET)
2752+
cd $(DEST_BIN); ln -sf $(VIMTARGET) $(VIEWTARGET)
27532753

27542754
$(DEST_BIN)/$(GVIMTARGET): $(DEST_BIN)
2755-
cd $(DEST_BIN); ln -s $(VIMTARGET) $(GVIMTARGET)
2755+
cd $(DEST_BIN); ln -sf $(VIMTARGET) $(GVIMTARGET)
27562756

27572757
$(DEST_BIN)/$(GVIEWTARGET): $(DEST_BIN)
2758-
cd $(DEST_BIN); ln -s $(VIMTARGET) $(GVIEWTARGET)
2758+
cd $(DEST_BIN); ln -sf $(VIMTARGET) $(GVIEWTARGET)
27592759

27602760
$(DEST_BIN)/$(RVIMTARGET): $(DEST_BIN)
2761-
cd $(DEST_BIN); ln -s $(VIMTARGET) $(RVIMTARGET)
2761+
cd $(DEST_BIN); ln -sf $(VIMTARGET) $(RVIMTARGET)
27622762

27632763
$(DEST_BIN)/$(RVIEWTARGET): $(DEST_BIN)
2764-
cd $(DEST_BIN); ln -s $(VIMTARGET) $(RVIEWTARGET)
2764+
cd $(DEST_BIN); ln -sf $(VIMTARGET) $(RVIEWTARGET)
27652765

27662766
$(DEST_BIN)/$(RGVIMTARGET): $(DEST_BIN)
2767-
cd $(DEST_BIN); ln -s $(VIMTARGET) $(RGVIMTARGET)
2767+
cd $(DEST_BIN); ln -sf $(VIMTARGET) $(RGVIMTARGET)
27682768

27692769
$(DEST_BIN)/$(RGVIEWTARGET): $(DEST_BIN)
2770-
cd $(DEST_BIN); ln -s $(VIMTARGET) $(RGVIEWTARGET)
2770+
cd $(DEST_BIN); ln -sf $(VIMTARGET) $(RGVIEWTARGET)
27712771

27722772
$(DEST_BIN)/$(VIMDIFFTARGET): $(DEST_BIN)
2773-
cd $(DEST_BIN); ln -s $(VIMTARGET) $(VIMDIFFTARGET)
2773+
cd $(DEST_BIN); ln -sf $(VIMTARGET) $(VIMDIFFTARGET)
27742774

27752775
$(DEST_BIN)/$(GVIMDIFFTARGET): $(DEST_BIN)
2776-
cd $(DEST_BIN); ln -s $(VIMTARGET) $(GVIMDIFFTARGET)
2776+
cd $(DEST_BIN); ln -sf $(VIMTARGET) $(GVIMDIFFTARGET)
27772777

27782778
$(DEST_BIN)/$(EVIMTARGET): $(DEST_BIN)
2779-
cd $(DEST_BIN); ln -s $(VIMTARGET) $(EVIMTARGET)
2779+
cd $(DEST_BIN); ln -sf $(VIMTARGET) $(EVIMTARGET)
27802780

27812781
$(DEST_BIN)/$(EVIEWTARGET): $(DEST_BIN)
2782-
cd $(DEST_BIN); ln -s $(VIMTARGET) $(EVIEWTARGET)
2782+
cd $(DEST_BIN); ln -sf $(VIMTARGET) $(EVIEWTARGET)
27832783

27842784
# Create links for the manual pages with various names to vim. This is only
27852785
# done when the links (or manpages with the same name) don't exist yet.

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,8 @@ static char *(features[]) =
734734

735735
static int included_patches[] =
736736
{ /* Add new patch number below this line */
737+
/**/
738+
2031,
737739
/**/
738740
2030,
739741
/**/

0 commit comments

Comments
 (0)