develooper Front page | perl.perl5.porters | Postings from January 2001

[PATCH: perl@8482] remove redundant dependencies that are unneeded

Thread Next
From:
Peter Prymmer
Date:
January 19, 2001 18:22
Subject:
[PATCH: perl@8482] remove redundant dependencies that are unneeded
Message ID:
Pine.OSF.4.10.10101191816550.61158-100000@aspara.forte.com

The dependency list for lint includes perly.c and $(c).
But c includes $(c2) and c2 includes perly.c hence lint depends on perly.c
and perly.c and there are make utilities that do not like that.

The dependency list for sperl includes perly.h, patchlevel.h, and $(h).
But h includes $(h3) and h3 includes perly.h and patchlevel.h.

The following patch removes the redundancies:

--- perl.8482/Makefile.SH.orig	Fri Jan 19 18:09:26 2001
+++ perl.8482/Makefile.SH	Fri Jan 19 18:19:25 2001
@@ -500,7 +500,7 @@
 
 $spitshell >>Makefile <<'!NO!SUBS!'
 
-sperl$(OBJ_EXT): perl.c perly.h patchlevel.h $(h)
+sperl$(OBJ_EXT): perl.c $(h)
 	$(RMS) sperl.c
 	$(LNS) perl.c sperl.c
 	$(CCCMD) -DIAMSUID sperl.c
@@ -783,7 +783,7 @@
 # If the source file has a /*NOSTRICT*/ somewhere, ignore the lint message
 # for that spot.
 
-lint: perly.c $(c)
+lint: $(c)
 	lint $(lintflags) $(defs) perly.c $(c) > perl.fuzz
 
 # Need to unset during recursion to go out of loop.
End of Patch.

Peter Prymmer



Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About