]> granicus.if.org Git - python/commitdiff
Don't delete non-autogenerated source files when cleaning up.
authorThomas Heller <theller@ctypes.org>
Thu, 16 Mar 2006 07:33:49 +0000 (07:33 +0000)
committerThomas Heller <theller@ctypes.org>
Thu, 16 Mar 2006 07:33:49 +0000 (07:33 +0000)
Makefile.pre.in

index 056b57803ab9045cde3c25ec921d7bf89c1caf25..c0bb1a18637c1174f049fb3923cfdc26b5ebce13 100644 (file)
@@ -974,8 +974,8 @@ clean:
        find . -name '*.o' -exec rm -f {} ';'
        find . -name '*.s[ol]' -exec rm -f {} ';'
        find $(srcdir) -name '*.py[co]' -exec rm -f {} ';'
-       find $(srcdir) -name 'fficonfig.h' -exec rm -f {} ';'
-       find $(srcdir) -name 'fficonfig.py' -exec rm -f {} ';'
+       find $(srcdir)/build -name 'fficonfig.h' -exec rm -f {} ';' || true
+       find $(srcdir)/build -name 'fficonfig.py' -exec rm -f {} ';' || true
 
 clobber: clean
        -rm -f $(BUILDPYTHON) $(PGEN) $(LIBRARY) $(LDLIBRARY) $(DLLLIBRARY) \