Question about Makefile: Circular dependency dropped.

Hi, I had a problem about Makefile when I compile my c++ files.
Please give me advice how to remove the circular dependency dropped error.
thanks

My makefile:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
all: conditional explicit2_type_conversion explicit_type_conversions implicit_type_conversions

conditional: conditional.cpp
	g++ -g -o conditional conditional.cpp
	
explicit2_type_conversion: explicit2_type_conversion.cpp
	g++ -g -o explicit2_type_conversion explicit2_type_conversion.cpp
	
explicit_type_conversions: explicit_type_conversions.cpp
	g++ -g -o explicit_type_conversions explicit_type_conversions.cpp
	
implicit_type_conversions: implicit_type_conversions implicit_type_conversions.cpp
	g++ -g -o implicit_type_conversions implicit_type_conversions.cpp
	
clean: 
	rm -f conditional explicit2_type_conversion explicit_type_conversions implicit_type_conversions

My error
1
2
3
4
5
6
[gongzhen@gongzhen constructor]$ make
g++ -g -o conditional conditional.cpp
g++ -g -o explicit2_type_conversion explicit2_type_conversion.cpp
g++ -g -o explicit_type_conversions explicit_type_conversions.cpp
make: Circular implicit_type_conversions <- implicit_type_conversions dependency dropped.
g++ -g -o implicit_type_conversions implicit_type_conversions.cpp
I think the problem is that implicit_type_conversions has implicit_type_conversions after the semicolon.
Topic archived. No new replies allowed.