From 931aa25a52e9a526bd90a29320e63c34b7b87728 Mon Sep 17 00:00:00 2001
From: Juan Escobar <escj@aero.obs-mip.fr>
Date: Thu, 24 Nov 2016 17:42:00 +0100
Subject: [PATCH] Juan 24/11/2016: Makefile, make optimisation , avoid find
 with empty directory name in USER Rules

(cherry picked from commit c3ec51f760456dae7f6d1a225158def5afc18b06)
---
 src/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Makefile b/src/Makefile
index 62906db16..7b1c7491d 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -138,14 +138,14 @@ LIB_MASTER=$(OBJDIR_MASTER)/$(LIB_OBJS_ROOT)-MASTER.a
 #
 # USER
 #
-#ifdef DO_COMP_USER
+ifdef OBJDIR_USER
 OBJS_LISTE_USER :=  $(OBJS_LISTE_USER) $(notdir $(shell find $(OBJDIR_USER) -follow -type f -name "spll_*.f*" | sed -e 's/\(.*\)\(\.\).*/\1.o/g' )) 
 #OBJS_LISTE_USER :=  $(OBJS_LISTE_USER) $(obj_flist $(OBJDIR_USER)) 
 #
 OBJS_LISTE_USER := $(sort $(filter-out $(IGNORE_OBJS), $(OBJS_LISTE_USER) $(OBJS_LISTE_MASTER) )) 
 #
 LIB_USER=$(OBJDIR_USER)/$(LIB_OBJS_ROOT)-$(VER_USER).a
-#endif
+endif
 ##########################################################
 #                                                        #
 # DEP_ALL : All dependance *.D to generate               #
-- 
GitLab