[cig-commits] [commit] devel, master: Fix make clean from subdirectories. (ba2c480)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Thu Nov 6 08:19:36 PST 2014


Repository : https://github.com/geodynamics/specfem3d_globe

On branches: devel,master
Link       : https://github.com/geodynamics/specfem3d_globe/compare/bc58e579b3b0838a0968725a076f5904845437ca...be63f20cbb6f462104e949894dbe205d2398cd7f

>---------------------------------------------------------------

commit ba2c480785ccfbc3da6a1b0fae91a0a039553dee
Author: Elliott Sales de Andrade <esalesde at physics.utoronto.ca>
Date:   Fri May 30 22:52:56 2014 -0400

    Fix make clean from subdirectories.
    
    When the CLEAN variable is defined, it means that `make clean' was run
    from a subdirectory. Only the files related to that directory should be
    removed, so the wildcard is no good.


>---------------------------------------------------------------

ba2c480785ccfbc3da6a1b0fae91a0a039553dee
 Makefile.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile.in b/Makefile.in
index 7eda335..900aafc 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -231,7 +231,7 @@ backup:
 ifdef CLEAN
 clean:
 	@echo "cleaning by CLEAN defined"
-	-rm -f $(foreach dir, $(CLEAN), $($(dir)_OBJECTS) $($(dir)_MODULES) $($(dir)_SHARED_OBJECTS) $($(dir)_TARGETS)) $O/*
+	-rm -f $(foreach dir, $(CLEAN), $($(dir)_OBJECTS) $($(dir)_MODULES) $($(dir)_SHARED_OBJECTS) $($(dir)_TARGETS))
 else
 clean:
 	@echo "cleaning by CLEAN not defined"



More information about the CIG-COMMITS mailing list