bug-make
[Top][All Lists]
Advanced

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

Re: [PATCH] Check .exe as well when a target does not exist on OS/2


From: KO Myung-Hun
Subject: Re: [PATCH] Check .exe as well when a target does not exist on OS/2
Date: Tue, 17 Jan 2023 18:57:50 +0900
User-agent: Mozilla/5.0 (OS/2; Warp 4.5; rv:10.0.6esrpre) Gecko/20120715 Firefox/10.0.6esrpre SeaMonkey/2.7.2


Paul Smith wrote:
> On Tue, 2023-01-17 at 01:38 +0900, KO Myung-Hun wrote:
>> What I meant is checking the existence of a rule for a target not a
>> real file built for a target.
> 
> But how do you check for a "rule for a target"?
> 
> What if the pattern rule is "%e" not "%.exe"?  That will still match of
> course.  Or "%xe" or whatever?  Or even "%o.exe"?  Are we going to
> check to find any possible pattern rule that might match a ".exe" and
> behave differently if we find one, even if it has nothing to do with
> actually creating a .exe file?

GNU Make stops if it cannot find a target like:

    make: *** No rule to make target 'foo.exe'.  Stop.

I think, it's possible to use this logic in order to find a `foo.exe'
target. And if it fails, check a `foo.exe' file in `foo' target.

-- 
KO Myung-Hun

Using Mozilla SeaMonkey 2.7.2
Under OS/2 Warp 4 for Korean with FixPak #15
In VirtualBox v6.1.40 on Intel Core i7-3615QM 2.30GHz with 12GB RAM

Korean OS/2 User Community : http://www.os2.kr/




reply via email to

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