URL: <http://savannah.gnu.org/bugs/?43550>
Summary: Compiling files in a directory with the same name as the source code fails Project: make Submitted by: None Submitted on: Thu 06 Nov 2014 06:30:44 PM UTC Severity: 3 - Normal Item Group: Bug Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Component Version: 3.81 Operating System: Any Fixed Release: None Triage Status: None _______________________________________________________ Details: :: Software :: Debian 3.14 Kali OS 10.10 Yosemite Mint 17 Make 3.81 :: Steps to reproduce :: 1. Create a directory called foo. 2. Create a file with in directory foo called foo.cpp. 3. Create a Makefile foo's parent directory with these contents all: foo foo: g++ ./foo/foo.cpp -o ./foo/foo 4. Run make in foo's parent directory. :: Actual Behavior :: Running `make` reports "Nothing to be done for all". Running `make foo` reports that "Foo is up to date". Nothing gets compiled. :: Expected Behavior :: Make should compile foo.cpp or produce some sort of error message if it can't compile foo.cpp. _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Thu 06 Nov 2014 06:30:44 PM UTC Name: Makefile Size: 48B By: None Example files that were mentioned in the report. <http://savannah.gnu.org/bugs/download.php?file_id=32380> ------------------------------------------------------- Date: Thu 06 Nov 2014 06:30:44 PM UTC Name: foo.cpp Size: 90B By: None Example files that were mentioned in the report. <http://savannah.gnu.org/bugs/download.php?file_id=32381> _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?43550> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Bug-make mailing list Bug-make@gnu.org https://lists.gnu.org/mailman/listinfo/bug-make