🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #162

gnu make bug

#162
From: Robert Blumen
Date: Mon, 20 Jul 1992 17:14
49 lines
1858 bytes
GNU Make version 3.62, by Richard Stallman and Roland McGrath.
running on:
SunOS Release 4.1.1 (GENERIC) #1: Thu Oct 11 10:25:14 PDT 1990

I have found what I believe to be a bug in gnu make.

Here is my makefile:

----------------------------------------------------------------------

% : %.example
	cp $< $@

----------------------------------------------------------------------

If the target file has a dot in its name, this rule does not work.  As far
as I can tell from the documentation, it should work.  This rule works with
SunOS make.

kohlrabi: integration > ls *.example
foo.example     foo.h.example
kohlrabi: integration > gmake -f mf foo
gmake -f mf foo
cp foo.example foo
kohlrabi: integration > gmake -f mf foo.h
gmake: *** No way to make target `foo.h'.  Stop.

// "make" is SunOS make
kohlrabi: integration > make -f mf foo.h
make -f mf foo.h
cp foo.h.example foo.h

I have discovered a workaround.   If I use the Makefile:

----------------------------------------------------------------------

foo.h : % : %.example
        cp $< $@

----------------------------------------------------------------------

then it works.

Robert

-----------------------------------------------------------------------------
Robert Blumen                          | robert@tcs.com
Senior Software Engineer               | 2121 Allston Way, Berkeley, CA 94704
Teknekron Communications Systems, Inc. | (510) 649-3759
Technical Details
Message-ID: <9207201714.AA18500@dwight.tcs.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!tcs.com!robert

Show Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!tcs.com!robert
From: robert@tcs.com (Robert Blumen)
Subject: gnu make bug
Message-ID: <9207201714.AA18500@dwight.tcs.com>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Mon, 20 Jul 1992 17:14:32 GMT
Approved: bug-gnu-utils@prep.ai.mit.edu
Lines: 50