Thread View: gnu.utils.bug
1 messages
1 total messages
Started by Jeff Treece
Wed, 27 Sep 1989 13:28
seems like a minor bug in make-3.56
Author: Jeff Treece
Date: Wed, 27 Sep 1989 13:28
Date: Wed, 27 Sep 1989 13:28
69 lines
2116 bytes
2116 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads