[comp.unix.questions] GNU Make

merlyn@intelob.intel.com (Randal L. Schwartz @ Stonehenge) (04/07/89)

In article <407@lexicon.com>, cspencer@lexicon (Cliff Spencer) writes:
| Does anyone have a way to create *implicit* rules for system 5 make 
| (or BSD make for that matter) that utilize subdirectories? I want
| to do the following:
| 	file.c creates asm/file.asm
| 	obj/file.obj depends on asm/file.asm
| 	target depends on obj/$(objects)

Get GNU Make.  Its free, and it does nifties like this rather easily...

obj/%.obj: asm/%.asm; as $< -o $@
asm/%.asm: %.c; cc -S $< -o $@

Another satisfied GNU hacker,
-- 
/=====Randal L. Schwartz, Stonehenge Consulting Services (503)777-0095========\
{        on contract to BiiN (for now :-) Hillsboro, Oregon, USA.             }
{<@intel-iwarp.arpa:merlyn@intelob.intel.com> ...!uunet!tektronix!biin!merlyn }
\=====Cute quote: "Welcome to Oregon... home of the California Raisins!"======/