Skip to content

Commit a74e85b

Browse files
author
Ernest
committed
fix path not found
1 parent d14f930 commit a74e85b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

generate_dependencies.make

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ RECOVER-NAME = $(subst ^^^^^^^^^^,\ ,$(strip $1))
1111
RECOVER-NAME2 = $(subst ^^^^^^^^^^,\\\ ,$(strip $1))
1212
CONVERT-CPP-TO-DEPENDENCY-NAME = $(subst .cpp,.d,$(1))
1313
CONVERT-DEPENDENCY-TO-CPP-NAME = $(subst .d,.cpp,$(1))
14-
FIND-CPP-TESTS = $(shell find -name '$(COSMOS_ROOT_PATH)/code/test_*.cpp' | sed 's: :^^^^^^^^^^:g')
14+
FIND-CPP-TESTS = $(shell find "$(COSMOS_ROOT_PATH)/code/" -name "test_*.cpp" | sed 's: :^^^^^^^^^^:g')
1515
FIND-CPP-SOURCES = $(filter-out $(cpp_tests),$(cpp_all_files))
16-
FIND-CPP-TEST-DEPENDENCIES = $(shell find -name '$(COSMOS_ROOT_PATH)/code/test_*.d' | sed 's: :^^^^^^^^^^:g')
16+
FIND-CPP-TEST-DEPENDENCIES = $(shell find "$(COSMOS_ROOT_PATH)/code/" -name "test_*.d" | sed 's: :^^^^^^^^^^:g')
1717
FIND-CPP-SOURCE-DEPENDENCIES = $(filter-out $(cpp_test_dependencies),$(cpp_all_dependencies))
1818

1919

20-
cpp_all_files = $(shell find -name '$(COSMOS_ROOT_PATH)/code/*.cpp' | sed 's: :^^^^^^^^^^:g')
20+
cpp_all_files = $(shell find "$(COSMOS_ROOT_PATH)/code/" -name "*.cpp" | sed 's: :^^^^^^^^^^:g')
2121
cpp_tests = $(call FIND-CPP-TESTS)
2222
cpp_sources = $(call FIND-CPP-SOURCES)
2323

@@ -64,7 +64,7 @@ generate_dependency:
6464
\r############################"
6565

6666

67-
cpp_all_dependencies = $(shell find -name '$(COSMOS_ROOT_PATH)/code/*.d' | sed 's: :^^^^^^^^^^:g')
67+
cpp_all_dependencies = $(shell find "$(COSMOS_ROOT_PATH)/code/" -name "*.d" | sed 's: :^^^^^^^^^^:g')
6868
cpp_test_dependencies = $(call FIND-CPP-TEST-DEPENDENCIES)
6969
cpp_source_dependencies = $(call FIND-CPP-SOURCE-DEPENDENCIES)
7070

testing.make

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ all: $(files_o);
1515
###########################
1616

1717
COSMOS_ROOT_PATH := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
18-
dependencies = $(shell find -name '$(COSMOS_ROOT_PATH)/code/*.d' | sed 's: :\\ :g')
18+
dependencies = $(shell find "$(COSMOS_ROOT_PATH)/code/" -name "*.d" | sed 's: :\\ :g')
1919
include $(dependencies)

0 commit comments

Comments
 (0)