Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site osiris.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!bellcore!decvax!genrad!panda!talcott!harvard!seismo!umcp-cs!aplvax!osiris!eric From: eric@osiris.UUCP (Eric Bergan) Newsgroups: net.unix-wizards Subject: What's wrong with this picture (makefile bug?) Message-ID: <177@osiris.UUCP> Date: Wed, 13-Mar-85 13:45:02 EST Article-I.D.: osiris.177 Posted: Wed Mar 13 13:45:02 1985 Date-Received: Sat, 16-Mar-85 03:39:39 EST Distribution: net Organization: Johns Hopkins Hospital Lines: 36 I seem to have run into a strange "make" problem involving user defined suffixes. I started with a makefile: .SUFFIXES: .qc .qc.c: cat $< >mtest.c mtest: mtest.o cc -o mtest mtest.o and a file "mtest.qc". If I say "make mtest" - it comes back "don't know how to make mtest.o". However if I do "make mtest.c" and then "make mtest" it works fine. If I change the makefile to: .SUFFIXES: .qc .qc.c: cat $< >mtest.c mtest: mtest.o cc -o mtest mtest.o mtest.o: mtest.c and the only file is "mtest.qc", and I do a "make mtest", it works fine. This happens under both 4.2 and System V. Has anyone gotten user defined suffixes to work correctly? -- eric ...!seismo!umcp-cs!aplvax!osiris!eric