[Top][All Lists]

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

Re: Extra_dist cannot hold two long lists?

From: Ralf Wildenhues
Subject: Re: Extra_dist cannot hold two long lists?
Date: Wed, 11 Jun 2008 07:46:40 +0200
User-agent: Mutt/1.5.17+20080114 (2008-01-14)

* bonami wrote on Wed, Jun 11, 2008 at 07:32:47AM CEST:
> A line in,
> EXTRA_DIST = tinystr.cpp tinyxml.cpp tinyxmlerror.cpp tinyxmlparser.cpp
> dllmain.cpp ezcomm.aps ezcommon.rc ezcommon.vcproj icon.ico resource.h
> stdafx.cpp stdafx.h #targetver.h test.xml tinyxml.txt
> If I uncomment the latter part of the line, none of these files will be
> added to .tar.gz. Even as such, stdafx.h is not distributed. Is there a line
> length limit? How can I distribute all these files?

Don't add source files to EXTRA_DIST.

Do it like this:

# if you want them in libdir, no need to use pkglib:
include_HEADERS= ezcommon.h tinystr.h tinyxml.h
libezcommon_la_SOURCES = ezcommon.cpp tinystr.cpp tinyxml.cpp \
  tinyxmlerror.cpp tinyxmlparser.cpp dllmain.cpp resource.h \
  stdafx.cpp stdafx.h targetver.h
EXTRA_DIST = ezcommon.aps ezcommon.rc ezcommon.vcproj icon.ico \
  test.xml tinyxml.txt

There is no line length limit for automake, but typically, non-GNU make
implementations have such a limit (their input being required to be a
text file).  2K characters are safe.  You need to wrap lines with
backslash newline, not just newline, and neither with any spaces after
the backslash.

Do not put comments ('#' signs) in macro settings.

If you need to conditionally add files, use an automake conditional to
add them:

libezcommon_la_SOURCES += ...


HTH.  Cheers,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]