treece@IUVAX.CS.INDIANA.EDU (Jeff Treece) (09/27/89)
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
mcgrath%paris.Berkeley.EDU@GINGER.BERKELEY.EDU (Roland McGrath) (09/29/89)
A file is not considered intermediate if it appears in a makefile.