From c61a78c8775cbe9e067152b386f731864dfb8c0b Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Wed, 5 Dec 2012 09:22:51 -0200 Subject: [PATCH] build-sys: Add missing force arg to symlink creation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If we don't force the symlink creation the build fails when the link already exists. This happens if the rule to create the link is triggered again because the file it points to changed. This is the case when doing incremental builds and we modified the file. $ make $ touch lib/cmtp.h $ make GEN lib/bluetooth/cmtp.h ln: failed to create symbolic link ‘lib/bluetooth/cmtp.h’: File exists make: *** [lib/bluetooth/cmtp.h] Error 1 make: *** Waiting for unfinished jobs.... --- Makefile.am | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index d18553db7..d39c5a1d3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -426,10 +426,10 @@ src/builtin.h: src/genbuiltin $(builtin_sources) $(AM_V_GEN)$(srcdir)/src/genbuiltin $(builtin_modules) > $@ profiles/sap/sap.c: profiles/sap/@SAP_DRIVER@ - $(AM_V_GEN)$(LN_S) $(abs_top_srcdir)/$< $@ + $(AM_V_GEN)$(LN_S) -f $(abs_top_srcdir)/$< $@ profiles/input/suspend.c: profiles/input/@HOG_SUSPEND_DRIVER@ - $(AM_V_GEN)$(LN_S) $(abs_top_builddir)/$< $@ + $(AM_V_GEN)$(LN_S) -f $(abs_top_builddir)/$< $@ scripts/%.rules: $(AM_V_GEN)cp $(subst 97-,,$@) $@ @@ -438,7 +438,7 @@ $(lib_libbluetooth_la_OBJECTS): $(local_headers) lib/bluetooth/%.h: lib/%.h $(AM_V_at)$(MKDIR_P) lib/bluetooth - $(AM_V_GEN)$(LN_S) $(abs_top_builddir)/$< $@ + $(AM_V_GEN)$(LN_S) -f $(abs_top_builddir)/$< $@ clean-local: $(RM) -r lib/bluetooth -- 2.47.3