From owner-freebsd-hackers Wed Feb 20 5:35:38 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from fort-point-station.mit.edu (FORT-POINT-STATION.MIT.EDU [18.7.7.76]) by hub.freebsd.org (Postfix) with ESMTP id D0B2737B416 for ; Wed, 20 Feb 2002 05:35:28 -0800 (PST) Received: from central-city-carrier-station.mit.edu (CENTRAL-CITY-CARRIER-STATION.MIT.EDU [18.7.7.72]) by fort-point-station.mit.edu (8.9.2/8.9.2) with ESMTP id IAA21705; Wed, 20 Feb 2002 08:35:28 -0500 (EST) Received: from melbourne-city-street.mit.edu (MELBOURNE-CITY-STREET.MIT.EDU [18.7.21.86]) by central-city-carrier-station.mit.edu (8.9.2/8.9.2) with ESMTP id IAA01666; Wed, 20 Feb 2002 08:35:27 -0500 (EST) Received: from nerd-xing.mit.edu (NERD-XING.MIT.EDU [18.7.16.74]) by melbourne-city-street.mit.edu (8.9.2/8.9.2) with ESMTP id IAA12467; Wed, 20 Feb 2002 08:35:26 -0500 (EST) Received: (from petr@localhost) by nerd-xing.mit.edu (8.9.3) id IAA26221; Wed, 20 Feb 2002 08:35:26 -0500 (EST) Date: Wed, 20 Feb 2002 08:35:26 -0500 (EST) Message-Id: <200202201335.IAA26221@nerd-xing.mit.edu> From: "Petr M. Swedock" To: pankaj@sarai.net Cc: freebsd-hackers@FreeBSD.ORG In-reply-to: <20020219093450.A13798@sarai.net> (message from Pankaj on Tue, 19 Feb 2002 09:34:50 +0100) Subject: Re: make in freebsd References: <20020219093450.A13798@sarai.net> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG : : > : > No, it is a feature of the makefiles. 'Make' itself doesn't know : > anything about fetching sources and so on. : > Most of the dirty work is done in /usr/ports/Mk/bsd.port.mk which is : > included by the port makefiles. : : which means I can safely use a similar makefile and have it *nix specific : and also download what i need automatically. I may be asking dumb questions : cuz i dont know anything about Makefiles I better go RTFM <-- any links Make is a command generator. It's (basic) purpose is to avoid having to type 'gcc -o $foo $foo.o -DHAVETHIS -Iwherever -Iwhereverelse -Opi blah blah blah' for every *.o file in a given program and keep track of all the dependencies when compiling. But it's rather general, such that it's not picky about which commands it generates. In the instance of the FreeBSD ports, it is used to generate ftp commands. FreeBSD_cli> man make (BSD) MAKE(1) FreeBSD General Commands Manual MAKE(1) NAME make - maintain program dependencies FreeBSD_cli> man gmake (gnu make) MAKE(1L) LOCAL USER COMMANDS MAKE(1L) NAME make - GNU make utility to maintain groups of programs Peace, Petr To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message