🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #3761

Re: Makefile : %.class: %.java

#3761
From: Jonathan Kamens
Date: Tue, 05 Jun 2001 20:04
11 lines
1977 bytes
In article <L1aT6.999$SQ2.49646@www.newsranger.com>,
 brinkleybw@hotmail.com writes:
>Make doesn't always like directories (and changing to them).  It is much easier
>to create a makefile for each directory, and then write one 'master' makefile
>that calls the others (called a recursive makefile; check the O'Reilly book).

There are times when recursive Makefiles are appropriate, but I don't
see why this is one of them.  It's prefectly reasonable to have a
single Makefile build all of the class files in a directory hierarchy. 
You just have to understand Make well enough to write all the rules
properly.
Technical Details
Message-ID: <9fje0l$rdi$2@jik.kamens.brookline.ma.us>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!jik.kamens.brookline.ma.us!jik
References: <3B03B870.2168B36C@bigfoot.com> <p5lmnwukdf.fsf@lemming.engeast.baynetworks.com> <p5bsosui8e.fsf@lemming.engeast.baynetworks.com> <sa8vgmls6pf.fsf@sun_tong_001.personal.yahoo.com> <9f4aia$bda$1@jik.kamens.brookline.ma.us> <sa8snhiepqq.fsf_-_@sun_tong_001.personal.yahoo.com> <9fc4e2$cko$1@jik.kamens.brookline.ma.us> <L1aT6.999$SQ2.49646@www.newsranger.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 109f73,4f4561c76a5fff83
X-Google-Attributes: gid109f73,public
X-Google-Thread: fc89c,4f4561c76a5fff83
X-Google-Attributes: gidfc89c,public
X-Google-ArrivalTime: 2001-06-05 14:01:01 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!jik.kamens.brookline.ma.us!jik
From: jik@kamens.brookline.ma.us (Jonathan Kamens)
Newsgroups: comp.unix.programmer,gnu.utils.help
Subject: Re: Makefile : %.class: %.java
Date: Tue, 5 Jun 2001 20:04:37 +0000 (UTC)
Organization: jik's Linux box
Lines: 11
Sender: jik@jik.kamens.brookline.ma.us (Jonathan Kamens)
Message-ID: <9fje0l$rdi$2@jik.kamens.brookline.ma.us>
References: <3B03B870.2168B36C@bigfoot.com> <p5lmnwukdf.fsf@lemming.engeast.baynetworks.com> <p5bsosui8e.fsf@lemming.engeast.baynetworks.com> <sa8vgmls6pf.fsf@sun_tong_001.personal.yahoo.com> <9f4aia$bda$1@jik.kamens.brookline.ma.us> <sa8snhiepqq.fsf_-_@sun_tong_001.personal.yahoo.com> <9fc4e2$cko$1@jik.kamens.brookline.ma.us> <L1aT6.999$SQ2.49646@www.newsranger.com>
NNTP-Posting-Host: jik-0.dsl.speakeasy.net
X-Trace: jik.kamens.brookline.ma.us 991771477 28082 66.92.77.120 (5 Jun 2001 20:04:37 GMT)
X-Complaints-To: usenet@kamens.brookline.ma.us
NNTP-Posting-Date: Tue, 5 Jun 2001 20:04:37 +0000 (UTC)
X-Newsreader: xrn 9.03-beta-5