develooper Front page | perl.makemaker | Postings from April 2003

[PATCH] ExtUtils::MM_Unix: dist target

Thread Next
From:
Slaven Rezic
Date:
April 26, 2003 03:21
Subject:
[PATCH] ExtUtils::MM_Unix: dist target
Message ID:
200304261002.h3QA24fG012333@vran.herceg.de
Hello Schwern,

the documentation for dist_target says that an up-to-date check for
the Makefile is done, which is *not* the case if the VERSION is
retrieved from the setting in Makefile.PL and not from VERSION_FROM.
The patch below makes the dist creation always dependent on a current
Makefile. I introduced also a dist_update_check to make the other
warning appear *before* actually creating the distribution, not
*after*. I also think that this warning should be turned into a die,
but this is not part of this patch.

Regards,
	Slaven


--- ../../bleedperl/lib/ExtUtils/MM_Unix.pm	Sat Apr 12 16:54:49 2003
+++ ExtUtils/MM_Unix.pm	Sat Apr 26 11:48:50 2003
@@ -792,7 +792,9 @@ print 'Warning: Makefile possibly out of
 CODE
 
     return sprintf <<'MAKE_FRAG', $date_check;
-dist : $(DIST_DEFAULT)
+dist : dist_update_check $(DIST_DEFAULT)
+
+dist_update_check : $(FIRST_MAKEFILE)
 	$(NOECHO) %s
 MAKE_FRAG
 }



-- 
Slaven Rezic - slaven@rezic.de

    tktimex - project time manager
    http://sourceforge.net/projects/ptktools/

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