diff options
author | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2001-02-03 17:16:29 (GMT) |
---|---|---|
committer | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2001-02-03 17:16:29 (GMT) |
commit | e0d435777cd5a251c29984a897736934b8bdfaa4 (patch) | |
tree | 3f3abf0c372742f46bc6027d529dee493b35e705 /Makefile.pre.in | |
parent | ba38123b7515e58a931eeb573a558d6d85d09f15 (diff) | |
download | cpython-e0d435777cd5a251c29984a897736934b8bdfaa4.zip cpython-e0d435777cd5a251c29984a897736934b8bdfaa4.tar.gz cpython-e0d435777cd5a251c29984a897736934b8bdfaa4.tar.bz2 |
Tweak clean targets yet again.
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r-- | Makefile.pre.in | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in index 846f019..dde1e4b 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -757,34 +757,31 @@ TAGS:: # files, which clobber removes those as well clean: - -rm -f core *~ [@,#]* *.old *.orig *.rej - -rm -rf build # avoid long command lines, same as LIBRARY_OBJS MAINOBJ PGOBJS -rm -f $(PARSER_OBJS) -rm -f $(OBJECT_OBJS) -rm -f $(PYTHON_OBJS) - -rm -f $(MODULE_OBJS) $(SIGNAL_OBJS) + -rm -f $(MODULE_OBJS) $(SIGNAL_OBJS) Modules/getbuildinfo.o -rm -f $(MODOBJS) $(MAINOBJ) $(PGOBJS) + if test -f build; then find build -name '*.o' -exec rm -f {} ';' ; fi + find $(srcdir) -name '*.py[co]' -exec rm -f {} ';' clobber: clean -rm -f tags TAGS $(PYTHON) $(LIBRARY) $(LDLIBRARY) $(DLLLIBRARY) \ - Modules/*.so Modules/*.sl + Modules/*.so Modules/*.sl Parser/pgen + -rm -rf build # Make things extra clean, before making a distribution: # remove all generated files, even Makefile[.pre] distclean: clobber - -rm -f Makefile Makefile.pre buildno config.status config.log \ - config.cache config.h setup.cfg Modules/config.c \ + -rm -f core Makefile Makefile.pre buildno config.status \ + config.log config.cache config.h Modules/config.c \ Modules/Setup Modules/Setup.local Modules/Setup.config - -for i in $(SUBDIRSTOO); do \ - for f in $$i/*.in; do \ - f=`basename "$$f" .in`; \ - if test "$$f" != "*"; then \ - echo rm -f "$$i/$$f"; \ - rm -f "$$i/$$f"; \ - fi; \ - done; \ - done + find $(srcdir) '(' -name '*.fdc' -o -name '*~' \ + -o -name '[@,#]*' -o -name '*.old' \ + -o -name '*.orig' -o -name '*.rej' \ + -o -name '*.bak' ')' \ + -exec rm -f {} ';' # Check for smelly exported symbols (not starting with Py/_Py) smelly: all |