Re: [hackers] [libgrapheme] Refactor Makefile, add dist-target and add test-util || Laslo Hunhold

From: Laslo Hunhold <dev_AT_frign.de>
Date: Wed, 15 Dec 2021 13:37:18 +0100

On Wed, 15 Dec 2021 13:28:04 +0100
Quentin Rameau <quinq_AT_fifth.space> wrote:

Dear Quentin,

> > -GEN = gen/grapheme gen/grapheme-test
> > -LIB = src/grapheme src/utf8 src/util
> > -TEST = test/grapheme test/grapheme-performance test/utf8-decode
> > test/utf8-encode -
> > -MAN3 = man/lg_grapheme_isbreak.3 man/lg_grapheme_nextbreak.3
> > +GEN =\
> > + gen/grapheme\
> > + gen/grapheme-test
> > +SRC =\
> > + src/grapheme\
> > + src/utf8\
> > + src/util
> > +TEST =\
> > + test/grapheme\
> > + test/grapheme-performance\
> > + test/utf8-decode\
> > + test/utf8-encode
> > +MAN3 =\
> > + man/lg_grapheme_isbreak.3\
> > + man/lg_grapheme_nextbreak.3
> > MAN7 = man/libgrapheme.7
> >
> > all: libgrapheme.a libgrapheme.so
>
> The idiomatic way of using those is to escape the newline on every
> macro line.
> The goal here is to help producing less noise in patches which add or
> remove lines there, so that only the actual concerned lines are
> modified, not the one that may be the last because you now need to add
> or remove a '\' there.

thanks for this! I now pushed a commit that adapts this good idiom.

With best regards

Laslo
Received on Wed Dec 15 2021 - 13:37:18 CET

This archive was generated by hypermail 2.3.0 : Wed Dec 15 2021 - 13:48:31 CET