This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How add a directory to source tree that used Autoconf but NOTAutomake?!..


On Tue, May 13, 2003 at 01:05:12PM -0700, cs@gnumatica.com wrote:
> [trying to integrate a third-party non-Automake package
> (libpcap) into his Automake-based source tree]
>
> I can create a tarball doing "make tar" with their Makefile.
> I cannot do "make dist" because their home grown set up does NOT
> have the "dist" target.
> How add this package to my source tree!?!?

Good question.  The easiest way would probably be to add a rule
to the libpcap Makefile:
	dist:
		dist-cmds

where "dist-cmds" stands for whatever you want "make dist" to do
within the libpcap subdirectory.  If the top-level "make dist"
does all the work, "dist-cmds" might be empty, leaving you with:
	dist:
whose only purpose is to keep "make" happy.

The only other thing I can think of would be to put a wrapper
around the libpcap subdirectory:
	your-package-root/
		libpcap-wrapper/
			libpcap/
				(libpcap distribution)
			Makefile

libpcap-wrapper can be almost empty.  The main thing (and
probably the *only* thing) it needs is a Makefile something like
this:
	all install clean distclean [many other targets]:
		cd libpcap; ${MAKE} $@

	dist:
		cd libpcap; dist-cmds

(You might have to break a few other targets out into individual
rules.  E.g. "make all" might have to copy libraries and headers
out of libpcap-wrapper/libpcap to wherever your own package's
build will look for them.)

I don't know whether it'd make more sense to write that little
Makefile by hand or use Automake to generate it.

--

|  | /\
|-_|/  >   Eric Siegerman, Toronto, Ont.        erics@telepres.com
|  |  /
My Wine works.  However it crashes about half the time on startup.
Apparently their simulation of windoze API is getting too accurate.  :)
	- Kyle Sallee




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]