[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: $? behavior difference between grouped targets and a multi-target pa
From: |
Dmitry Goncharov |
Subject: |
Re: $? behavior difference between grouped targets and a multi-target pattern rule |
Date: |
Fri, 9 Aug 2024 19:00:49 -0400 |
On Fri, Aug 9, 2024 at 8:07 AM Masahiro Yamada <masahiroy@kernel.org> wrote:
> The value of $? is different.
What do you observe if you wait between touching foo.r and touching foo.p?
$ rm foo.*; touch foo.p; sleep 2; touch foo.r
$ make -f makefile1
$? = foo.r FORCE
touch foo.p ; touch foo.q
$
$ rm foo.*; touch foo.p; sleep 2; touch foo.r
$ make -f makefile2
$? = foo.r FORCE
touch foo.p ; touch foo.q
$
$
$ rm foo.*; touch foo.r; sleep 2; touch foo.p
$ make -f makefile1
$? = FORCE
touch foo.p ; touch foo.q
$ rm foo.*; touch foo.r; sleep 2; touch foo.p
$ make -f makefile2
$? = FORCE
touch foo.p ; touch foo.q
regards, Dmitry