Browse Source

Really use absolute paths for symlinks

Samuel Thibault 5 years ago
parent
commit
573d06be12
3 changed files with 5 additions and 5 deletions
  1. 2 2
      examples/Makefile.am
  2. 2 2
      mpi/examples/Makefile.am
  3. 1 1
      tests/Makefile.am

+ 2 - 2
examples/Makefile.am

@@ -1118,10 +1118,10 @@ endif
 # - link over source file to build our own object
 fortran90/starpu_mod.f90:
 	@$(MKDIR_P) $(dir $@)
-	$(LN_S) $(top_srcdir)/include/$(notdir $@) $@
+	$(LN_S) $(abs_top_srcdir)/include/$(notdir $@) $@
 native_fortran/fstarpu_mod.f90:
 	@$(MKDIR_P) $(dir $@)
-	$(LN_S) $(top_srcdir)/include/$(notdir $@) $@
+	$(LN_S) $(abs_top_srcdir)/include/$(notdir $@) $@
 
 if STARPU_HAVE_FC
 # Fortran90 example

+ 2 - 2
mpi/examples/Makefile.am

@@ -389,10 +389,10 @@ endif
 # - link over source file to build our own object
 native_fortran/fstarpu_mod.f90:
 	@$(MKDIR_P) $(dir $@)
-	$(LN_S) $(top_srcdir)/include/$(notdir $@) $@
+	$(LN_S) $(abs_top_srcdir)/include/$(notdir $@) $@
 native_fortran/fstarpu_mpi_mod.f90:
 	@$(MKDIR_P) $(dir $@)
-	$(LN_S) $(top_srcdir)/mpi/include/$(notdir $@) $@
+	$(LN_S) $(abs_top_srcdir)/mpi/include/$(notdir $@) $@
 
 if STARPU_HAVE_MPIFORT
 if BUILD_EXAMPLES

+ 1 - 1
tests/Makefile.am

@@ -1008,7 +1008,7 @@ sched_policies_execute_all_tasks_LDFLAGS = $(AM_LDFLAGS) -lm
 # - link over source file to build our own object
 fortran90/starpu_mod.f90:
 	@$(MKDIR_P) $(dir $@)
-	$(LN_S) $(top_srcdir)/include/$(notdir $@) $@
+	$(LN_S) $(abs_top_srcdir)/include/$(notdir $@) $@
 
 if STARPU_HAVE_FC
 # - express the creation of .mod along .o