[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: % pattern doesn't work

From: Paul Smith
Subject: Re: % pattern doesn't work
Date: Fri, 04 Mar 2016 14:15:56 -0500

Hi; please be sure to use the mailing lists, rather than emailing to me
directly.  Also, for these lists we prefer inline replies rather than
top-posting.  Thx!

> From: Paul Smith <address@hidden>
> > $(RELEASE_DIR)/temp/%.o: %.cpp
> >     ${CC} ${CFLAGS} -c -o $@ $&lt;;
> > For the above code, I just want all the generated object files
> > redirected to $(RELEASE_DIR)/temp directory,
> > but these object files are all directed to $(RELEASE_DIR) directory.

> This rule will definitely put all objects into the $(RELEASE_DIR)/temp
> directory: there's nothing wrong with it.

On Fri, 2016-03-04 at 06:51 +0000, Yan Zhao OL Liu wrote:
> Hi Paul,
> I've tested on several platforms.
> I'm sure this pattern can't work correctly on Windows Server 2008 +
> MKS platform.
> On linux + make platform, it works correctly.

Well, there's no difference in this area that I'm aware of between how
make behaves on Windows vs. other platforms.  Make sure that (a) you're
using GNU make and not some other implementation of make, and (b) you're
using more or less the same version of GNU make on your Windows system.

Also GNU make can be created different ways to run on Windows: as part
of Cygwin, or natively using Visual Studio or mingw, etc.

However, as I mentioned in my previous email there's not much else we
can say based on the information you've provided except "yes, it does so

If you want to resolve the issue you'll have to provide useful
information.  For example, the operating system and version of GNU make
you're using, show the command line you invoked, explain which files
exist (with full paths), show the output make generates, and even run
make with the "-d" flag and include the relevant (only!  Not the entire
output!) lines related to make doing the wrong thing.

Also, if the problem happens only on Windows you might consider asking
on the address@hidden mailing list, which is specifically for issues
related to GNU make on Windows.  Some people on that list don't read
this one.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]