Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!uwm.edu!gem.mps.ohio-state.edu!pacific.mps.ohio-state.edu!tut.cis.ohio-state.edu!IUVAX.CS.INDIANA.EDU!sabbagh!treece From: sabbagh!treece@IUVAX.CS.INDIANA.EDU (Jeff Treece) Newsgroups: gnu.utils.bug Subject: seems like a minor bug in make-3.56 Message-ID: <8909271433.AA02865@life.ai.mit.edu> Date: 27 Sep 89 13:28:51 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 69 Hello bug-gnu-utils, I discovered a very minor problem with make-3.56 that I thought you might like to know about. When building an archive, as in the following script, one file that seems to be an "intermediate" file is not removed. Note that intrp2.o is not removed upon successful completion of make. script: -------------- [120]% ls total 2 1 Makefile 1 SCCS/ [121]% make sccs get SCCS/s.fulnam.f 1.3 59 lines fortran -OM -O -DAS -alt -c fulnam.f ar rv libutility.a fulnam.o a - fulnam.o ar: creating libutility.a sccs get SCCS/s.intrp2.f 1.4 124 lines fortran -OM -O -DAS -alt -c intrp2.f ar rv libutility.a intrp2.o a - intrp2.o ranlib libutility.a rm fulnam.f fulnam.o intrp2.f [122]% ls total 7 1 Makefile 2 intrp2.o 1 SCCS/ 3 libutility.a [123]% Here is Makefile: ------------------------- # %W% %G% Makefile for utility routines FFLAGS= -g FFLAGS= -OM -O -DAS -alt # library name LIB = libutility.a # fulnam generates a full pathname from a dir, base, and extension # intrp2 interpolates a two-d array over some region OBJ = ${LIB}(fulnam.o) ${LIB}(intrp2.o) # make the library using GNU make's archive-handling smarts ${LIB}: $(OBJ) ranlib ${LIB} # install library .PHONY: install install: ${LIB} install ${LIB} ../lib # testing facility for intrp2 tester: tester.o intrp2.o ${FC} ${FFLAGS} tester.o intrp2.o -o tester.exe && touch tester ---------------------------------- Thanks for the nice software! Jeff Treece Sabbagh Associates treece@sabbagh.com ...iuvax.cs.indiana.edu!sabbagh!treece (812) 339-8273