<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 23: implicit rule omits dependency (vs gmake)</title><link href="https://sourceforge.net/p/makepp/bugs/23/" rel="alternate"/><link href="https://sourceforge.net/p/makepp/bugs/23/feed.atom" rel="self"/><id>https://sourceforge.net/p/makepp/bugs/23/</id><updated>2009-10-18T03:57:01Z</updated><subtitle>Recent changes to 23: implicit rule omits dependency (vs gmake)</subtitle><entry><title>implicit rule omits dependency (vs gmake)</title><link href="https://sourceforge.net/p/makepp/bugs/23/" rel="alternate"/><published>2009-10-18T03:57:01Z</published><updated>2009-10-18T03:57:01Z</updated><author><name>giksos</name><uri>https://sourceforge.net/u/giksos/</uri></author><id>https://sourceforge.net66f1ede8e7f8c98cb4d8a5c2d52017c043c19c0c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;sometimes I add a dependency to an executable that otherwise gets created by an implicit rule, like&lt;/p&gt;
&lt;p&gt;first: second.o&lt;/p&gt;
&lt;p&gt;This works fine with gmake and mpp on linux, but on cygwin the dependency doesn't get picked up:&lt;/p&gt;
&lt;p&gt;makepp: Loading makefile `/c/docs/sandbox/make/makepp/exe_suffix/makefile'&lt;br /&gt;
makepp: Scanning `/c/docs/sandbox/make/makepp/exe_suffix/first.cpp'&lt;br /&gt;
makepp: Entering directory `/c/docs/sandbox/make/makepp/exe_suffix'&lt;br /&gt;
g++ -g -Wall  -c first.cpp -o first.o&lt;br /&gt;
g++ first.o    -o first.exe&lt;br /&gt;
first.o: In function `main':&lt;br /&gt;
/c/docs/sandbox/make/makepp/exe_suffix/first.cpp:6: undefined reference to `f()'&lt;br /&gt;
collect2: ld returned 1 exit status&lt;br /&gt;
makepp: error: Failed to build target `/c/docs/sandbox/make/makepp/exe_suffix/first.exe' [1]&lt;br /&gt;
makepp: 1 file updated, 0 phony targets built and 1 target failed&lt;br /&gt;
makepp: error: $(prebuild first.exe) failed&lt;br /&gt;
$(prebuild first.exe) failed&lt;/p&gt;
&lt;p&gt;Gmake works fine however. I attach all the files necesary to reproduce.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>