[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnulib] getline & getline_safe
From: |
Bruno Haible |
Subject: |
Re: [Bug-gnulib] getline & getline_safe |
Date: |
Thu, 31 Jul 2003 20:48:22 +0200 |
User-agent: |
KMail/1.5 |
Derek Robert Price wrote:
> Why is are the headers in EXTRA_DIST instead of lib_SOURCES in
> modules/getline:
>
> Makefile.am:
> lib_SOURCES += getline.h
> EXTRA_DIST += getndelim2.h getndelim2.c
You are right: the getndelim2.h could also be mentioned in lib_SOURCES
instead of EXTRA_DIST.
I like to put the .h and .c file together into the same variable,
for simplicity. So I'm proceeding according to this rule:
- sources which are compiled regardless of platform go into lib_SOURCES,
- all other sources go into EXTRA_DIST.
Your mileage might vary.
> Also, Automake discovers getndelim2 due to the AC_LIBOBJ call, so it is
> unecessary to have getndelim2 in EXTRA_DIST.
You are right again. Still I find it simpler to follow the above general rule
for distinguishing between lib_SOURCES and EXTRA_DIST, rather than make
case-by-case optimizations which depend on whether a file is .h or .c
and on the contents of the .m4 file.
Bruno
- Re: [Bug-gnulib] getline & getline_safe, (continued)
- Re: [Bug-gnulib] getline & getline_safe, Derek Robert Price, 2003/07/18
- Re: [Bug-gnulib] getline & getline_safe, Bruno Haible, 2003/07/18
- Re: [Bug-gnulib] getline & getline_safe, Derek Robert Price, 2003/07/18
- Re: [Bug-gnulib] getline & getline_safe, Bruno Haible, 2003/07/24
- Re: [Bug-gnulib] getline & getline_safe, Derek Robert Price, 2003/07/24
- Re: [Bug-gnulib] getline & getline_safe, Bruno Haible, 2003/07/24
- Re: [Bug-gnulib] getline & getline_safe, Derek Robert Price, 2003/07/25
- Re: [Bug-gnulib] getline & getline_safe, Bruno Haible, 2003/07/28
- Re: [Bug-gnulib] getline & getline_safe, Jim Meyering, 2003/07/28
- Re: [Bug-gnulib] getline & getline_safe, Derek Robert Price, 2003/07/31
- Re: [Bug-gnulib] getline & getline_safe,
Bruno Haible <=
- Re: [Bug-gnulib] getline & getline_safe, Derek Robert Price, 2003/07/31
- Re: [Bug-gnulib] getline & getline_safe, Derek Robert Price, 2003/07/31
- Re: [Bug-gnulib] getline & getline_safe, Derek Robert Price, 2003/07/31
- Re: [Bug-gnulib] getline & getline_safe, Bruno Haible, 2003/07/24
- Re: [Bug-gnulib] getline & getline_safe, Derek Robert Price, 2003/07/24