[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #52028] Preventing infinite recursions when make is invoked from re
From: |
Paul D. Smith |
Subject: |
[bug #52028] Preventing infinite recursions when make is invoked from recipes |
Date: |
Sat, 23 Sep 2017 14:08:08 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0 |
Update of bug #52028 (project make):
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #1:
I don't think adding a new function is appropriate for this. It's simpler,
IMO, to use the existing "-o" / "--old-file" command line option and arrange
for it to be passed down. For example something like:
$ cat Makefile
export OLDFILES
a :
echo a1
$(eval OLD_FILES += -o$@)
$(MAKE) $(OLD_FILES) b
echo a2
b :
echo b1
$(eval OLD_FILES += -o$@)
$(MAKE) $(OLD_FILES) a
echo b2
$ make
echo a1
a1
make -oa b
echo b1
b1
make -oa -ob a
make[2]: 'a' is up to date.
echo b2
b2
echo a2
a2
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?52028>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/