From owner-freebsd-questions@FreeBSD.ORG Thu Nov 18 16:47:17 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CA91F16A4CE for ; Thu, 18 Nov 2004 16:47:17 +0000 (GMT) Received: from lakermmtao05.cox.net (lakermmtao05.cox.net [68.230.240.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3ED0843D46 for ; Thu, 18 Nov 2004 16:47:17 +0000 (GMT) (envelope-from conrads@cox.net) Received: from dolphin.local.net ([68.11.30.24]) by lakermmtao05.cox.net (InterMail vM.6.01.04.00 201-2131-117-20041022) with ESMTP id <20041118164716.QOSL2595.lakermmtao05.cox.net@dolphin.local.net>; Thu, 18 Nov 2004 11:47:16 -0500 Received: from dolphin.local.net (localhost.local.net [127.0.0.1]) by dolphin.local.net (8.13.1/8.13.1) with SMTP id iAIGlGWq027084; Thu, 18 Nov 2004 10:47:16 -0600 (CST) (envelope-from conrads@cox.net) Date: Thu, 18 Nov 2004 10:47:11 -0600 From: "Conrad J. Sabatier" To: Giorgos Keramidas Message-ID: <20041118104711.44bbce88@dolphin.local.net> In-Reply-To: <20041118163221.GB45289@orion.daedalusnetworks.priv> References: <20041118160531.GA43779@dogma.freebsd-uk.eu.org> <20041118101808.11092f21@dolphin.local.net> <20041118163221.GB45289@orion.daedalusnetworks.priv> X-Mailer: Sylpheed-Claws 0.9.12b (GTK+ 1.2.10; amd64-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: Jonathon McKitrick cc: freebsd-questions@freebsd.org Subject: Re: BSD equivalents of autoconf, automake, etc. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Nov 2004 16:47:17 -0000 On Thu, 18 Nov 2004 18:32:21 +0200, Giorgos Keramidas wrote: > On 2004-11-18 10:18, "Conrad J. Sabatier" wrote: > > On Thu, 18 Nov 2004 16:05:31 +0000, Jonathon McKitrick > > wrote: > > > I'm starting to dabble in these self-contained self-building > > > scripts and tools and so on, like automake, autoconf, libtool, > > > and so on. > > I wouldn't go anywhere near these huge, hideous monsters of a shell > script, unless someone was paying me very good money for doing so :P I quite agree. It's unfortunate that most of the IDEs for *nix (at least the ones that I've tried) want to try to force you into using these tools. One can waste an incredible amount of time wrestling with these things that are *supposed* to make life easier (yeah, right!). > > > Are these the preferred way of doing things on FreeBSD, or is > > > there a better or more BSD-way of doing them? > > Nope. There is actually a better way. Even plain Makefiles that use > the infrastructure in /usr/share/mk are A LOT easier to write than > portable autoconf stuff (if there really *is* any such thing). > > The minimal Makefile for building a program in FreeBSD looks something > like this: > > PROG= foo > > .include > > That's it! All you have to do then is to write `foo.c' and `foo.1' -- > the source and manpage of the program, respectively. If you don't > have a manpage or will never need one, a simple option like this: > > NOMAN= I have no manpage for this, because it sucks. > > will inhibit the use of a manpage while building. > > I can't even begin to describe all the 'make magic' that is hidden in > /usr/share/mk/*.mk, but you can find out most of it by reading the > comments in these make(1) include files. Really. FreeBSD's make system is a true work of art. :-) -- Conrad J. Sabatier -- "In Unix veritas"