tech-toolchain archive

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

Re: Make and makefile bugs (PRs 49085, 49086, 49087)



In article <20140807165037.GM965%roskakori.fi@localhost>,
Jarmo Jaakkola  <jarmo.jaakkola+netbsd-toolchain%roskakori.fi@localhost> wrote:
>Hi!

I've seen them, but I am on vacation with limited connectivity so I can't
really comment.

>        Issue 7: using the .NULL special target breaks single suffix
>                rules
>
>            Also obviously a bug.  But in my opinion this whole feature
>            can be scrapped.  I can't see anything it does that couldn't
>            better be done with single suffix transformation rules.
>            My patch removes this feature, making .NULL to be a parsing
>            error (so people who might've used it catch the change).

I thought this allowed you to do:


.SUFFIXES: .gz

.NULL.gz:  
        gzip ${.ALLSRC}

all: foo.gz

but I see it does not work. But if you remove .NULL, how can you make it
work? I think that the most important feature missing in make is pattern
rules; the whole suffix thing should be scrapped and implemented in terms
of pattern rules. But that's a larger project.

christos



Home | Main Index | Thread Index | Old Index