Reputation: 14869
I have a small issue with my build procedure on linux.
For whatever reason in my code if I issue a "make clean" Linux produces a file called "clean". The thing is that I don't have a "clean" section on the makefile of my project.
It looks like my make is picking up the wrong Makefile from somewhere and this might clash with the Makefile of my project.
Is there anyway to know which makefile is looked up?
Upvotes: 1
Views: 208
Reputation: 399881
Two ideas:
--debug
command line option to have the make program tell you more about what it's doing..PHONY
declaration of the clean
target.Upvotes: 2
Reputation: 1
I suggest to use remake to debug your makefiles. Install it then run remake -x
or even remake -x -d
. (The remake
utility is a nearly compatible variant of GNU make
).
In your case, the lack of a phony clean
target makes the make
utility creating an empty file named clean
.
Upvotes: 1