[Python-checkins] CVS: python/dist/src Makefile.pre.in,1.12,1.13

Neil Schemenauer nascheme@users.sourceforge.net
Sat, 03 Feb 2001 09:16:31 -0800


Update of /cvsroot/python/python/dist/src
In directory usw-pr-cvs1:/tmp/cvs-serv28481

Modified Files:
	Makefile.pre.in 
Log Message:
Tweak clean targets yet again.


Index: Makefile.pre.in
===================================================================
RCS file: /cvsroot/python/python/dist/src/Makefile.pre.in,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -r1.12 -r1.13
*** Makefile.pre.in	2001/02/02 19:54:23	1.12
--- Makefile.pre.in	2001/02/03 17:16:29	1.13
***************
*** 758,789 ****
  
  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 $(MODOBJS) $(MAINOBJ) $(PGOBJS)
  
  clobber: clean
  	-rm -f tags TAGS $(PYTHON) $(LIBRARY) $(LDLIBRARY) $(DLLLIBRARY) \
! 		Modules/*.so Modules/*.sl
  
  # 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 \
  		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
  
  # Check for smelly exported symbols (not starting with Py/_Py)
--- 758,786 ----
  
  clean:
  	# 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) 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 Parser/pgen
! 	-rm -rf build
  
  # Make things extra clean, before making a distribution:
  # remove all generated files, even Makefile[.pre]
  distclean: clobber
! 	-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
! 	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)