Skip to install files for empty directories; to name it, Lib/lib-old.
authorHye-Shik Chang <hyeshik@gmail.com>
Thu, 23 Mar 2006 12:04:37 +0000 (12:04 +0000)
committerHye-Shik Chang <hyeshik@gmail.com>
Thu, 23 Mar 2006 12:04:37 +0000 (12:04 +0000)
BSD make stops the build when it tries to expand wild cards on empty
directories.

Makefile.pre.in

index 154f6b45d8d88d86543383be757824c7541dfeba..4772ff0981dfbc9791fe150b7715935a36641508 100644 (file)
@@ -720,6 +720,9 @@ libinstall: $(BUILDPYTHON) $(srcdir)/Lib/$(PLATDIR)
                a=$(srcdir)/Lib/$$d; \
                if test ! -d $$a; then continue; else true; fi; \
                b=$(LIBDEST)/$$d; \
+               if [ `ls $$a | wc -l` -lt 1 ]; then \
+                       continue; \
+               fi; \
                for i in $$a/*; \
                do \
                        case $$i in \