]> granicus.if.org Git - python/commitdiff
As discussed on python-dev, don't remove Python-ast.[ch] with distclean
authorNeal Norwitz <nnorwitz@gmail.com>
Tue, 3 Jan 2006 01:38:53 +0000 (01:38 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Tue, 3 Jan 2006 01:38:53 +0000 (01:38 +0000)
even though they are generated.  Since these files require Python 2.2+,
it's possible they can't be created on a fresh system.

Makefile.pre.in

index 80fc894a6816c3104552426817433621b652d280..259cd8707a6fa51270493a287097c7a3e94731f4 100644 (file)
@@ -988,10 +988,10 @@ clobber: clean
 
 # Make things extra clean, before making a distribution:
 # remove all generated files, even Makefile[.pre]
+# Keep configure and Python-ast.[ch], it's possible they can't be generated
 distclean: clobber
        -rm -f core Makefile Makefile.pre buildno config.status \
                Modules/Setup Modules/Setup.local Modules/Setup.config
-       -rm -f $(AST_H) $(AST_C)
        find $(srcdir) '(' -name '*.fdc' -o -name '*~' \
                           -o -name '[@,#]*' -o -name '*.old' \
                           -o -name '*.orig' -o -name '*.rej' \