Re: [PATCH 2/3] Make init.c depend on source files

Simon Marchi
2018-12-27T04:23:21Z

On 2018-12-26 11:21 p.m., Tom Tromey wrote:
>>>>>> "Simon" == Simon Marchi <simon.marchi@polymtl.ca> writes:
>
> Simon> On 2018-12-24 16:09, Tom Tromey wrote:
>>> +INIT_FILES = \
>>> + $(patsubst %.o,%.c, \
>>> + $(patsubst %-exp.o,%-exp.y, \
>>> + $(filter-out $(NATDEPFILES) init.o version.o %_S.o %_U.o,\
>>> + $(COMMON_OBS))))
>
> Simon> What do %_S and %_U mean?
>
> "%" is just the way make patterns work, and the _S and _U deletions are
> copied from the old code. I believe they refer to the GNU Hurd
> mig-generated files. See gdb/config/i386/i386gnu.mn.

Ahh! Stoopid me though they were Makefile special variables (like $@).

Simon