-
Notifications
You must be signed in to change notification settings - Fork 577
'make clean' defect #14109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
From @jkeenanIn the course of solving a problem with 'make distclean', Craig Berry noted (https://rt-archive.perl.org/perl5/Ticket/Display.html?id=122820#txn-1309944): ##### -- |
From @jkeenanSummary of my perl5 (revision 5 version 21 subversion 5) configuration: Characteristics of this binary (from libperl): |
From @craigberryOn Sun, Sep 21, 2014 at 8:58 PM, James E Keenan
Note that the warning I see during "make clean" many many times, |
The RT System itself - Status changed from 'new' to 'open' |
From @doughera88On Sun, Sep 21, 2014 at 10:26:14PM -0500, "Craig A. Berry" wrote:
I don't think "make clean" has ever done anything very useful. It's certainly (A plain 'make clean' will not delete the makefiles used for Because of the way the perl build bootstraps, I don't know what reasonable -- |
From @craigberryOn Mon, Sep 22, 2014 at 6:38 AM, Andy Dougherty <doughera@lafayette.edu> wrote:
Yeah, I'm starting to see that clean doesn't play nice with the other I would be fine with saying clean --> distclean is not a supported |
From @tonycozOn Mon Sep 22 04:39:14 2014, doughera wrote:
make clean has been documented as not useful since 1997. The attached patch makes make clean behave the same as make distclean. Tony |
From @tonycoz0001-change-make-clean-to-be-equivalent-to-make-realclean.patchFrom e8d68e40e8b4a7d9b2274b44d6c561453b3c208f Mon Sep 17 00:00:00 2001
From: Tony Cook <[email protected]>
Date: Tue, 7 Oct 2014 10:33:58 +1100
Subject: change 'make clean' to be equivalent to 'make realclean'
'make clean' hasn't been useful since at least 1997, change it to
something that is useful, 'make realclean'
---
INSTALL | 5 ++---
Makefile.SH | 11 +----------
Porting/pumpkin.pod | 6 ------
3 files changed, 3 insertions(+), 19 deletions(-)
diff --git a/INSTALL b/INSTALL
index bef2786..196ae6a 100644
--- a/INSTALL
+++ b/INSTALL
@@ -2363,9 +2363,8 @@ or
make realclean
The only difference between the two is that make distclean also removes
-your old config.sh and Policy.sh files. (A plain 'make clean' will not
-delete the makefiles used for rebuilding perl, and will also not delete
-a number of library and utility files extracted during the build process.)
+your old config.sh and Policy.sh files. (A plain 'make clean' is now
+eqivalent to 'make realclean'.)
If you are upgrading from a previous version of perl, or if you
change systems or compilers or make other significant changes, or if
diff --git a/Makefile.SH b/Makefile.SH
index 7b1fd5b..7878077 100755
--- a/Makefile.SH
+++ b/Makefile.SH
@@ -1216,7 +1216,7 @@ printconfig:
realclean _realcleaner clobber _clobber \
distclean veryclean _verycleaner
-clean: _tidy _mopup
+clean: realclean
realclean: _realcleaner _mopup
@echo "Note that '$(MAKE) realclean' does not delete config.sh or Policy.sh"
@@ -1248,15 +1248,6 @@ _mopup:
-rm -f $(PERL_EXE) $(MINIPERL_EXE) $(LIBPERL) libperl.* microperl
-rm -f config.arch config.over $(DTRACE_H)
-# Do not 'make _tidy' directly.
-_tidy:
- -cd pod; $(LDLIBPTH) $(MAKE) clean
- -cd utils; $(LDLIBPTH) $(MAKE) clean
- -rm -f lib/Config_git.pl git_version.h
- -@for x in $(DYNALOADER) $(dynamic_ext) $(static_ext) $(nonxs_ext) ; do \
- $(MINIPERL) make_ext.pl --target=clean $$x MAKE="$(MAKE)" ; \
- done
-
_cleaner1:
-cd os2; rm -f Makefile
-cd pod; $(LDLIBPTH) $(MAKE) $(CLEAN)
diff --git a/Porting/pumpkin.pod b/Porting/pumpkin.pod
index a8c8fb0..0a6165f 100644
--- a/Porting/pumpkin.pod
+++ b/Porting/pumpkin.pod
@@ -1265,12 +1265,6 @@ I've received sensible suggestions for --exec_prefix and other
GNU configure --options. It's not always obvious exactly what is
intended, but this merits investigation.
-=item make clean
-
-Currently, B<make clean> isn't all that useful, though
-B<make realclean> and B<make distclean> are. This needs a bit of
-thought and documentation before it gets cleaned up.
-
=item Try gcc if cc fails
Currently, we just give up.
--
1.7.10.4
|
From @tonycozOn Mon Oct 06 16:38:02 2014, tonyc wrote:
No comments, so no-one objects ;) Applied as dd8235d. Tony |
@tonycoz - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#122823 (status was 'resolved')
Searchable as RT122823$
The text was updated successfully, but these errors were encountered: