help with make needed

Svante Lindahl zap at front.se
Wed Apr 26 00:54:16 AEST 1989


In article <459 at front.se>,I wrote:
[ The target, a library, should be removed and rebuilt if the makefile
  has been updated. ]

> Makefile:	FRC
> 		- at if newer Makefile $(TARGET) ; then rm -f $(TARGET); fi
...

I got some good suggestions from Rich $alz on how to avoid the need
for the newer(1L) program. This is what it looks like:

Makefile:	FRC
	- at if echo "Makefile: $(TARGET) ; @/bin/false" | make -qf - ; \
	then rm -f $(TARGET) ; fi

Svante.Lindahl at front.se	    (!-net: ...!uunet!front.se!svante)
			    (non-mx: Svante.Lindahl%front.se at uunet.uu.net)



More information about the Comp.unix.questions mailing list