Make sure that libm is used during config tests so that ceil, floor, and
[oota-llvm.git] / Makefile.rules
index ccd9fc8f8f57dda186eb1413b3e9b7dc69c0511e..39c741a8838c196a294dbe5529bf000c352fe815 100644 (file)
@@ -1568,12 +1568,14 @@ install-local::
            $(DataInstall) $$hdr $(PROJ_includedir)/$$hdr ; \
          done ; \
        fi
+ifneq ($(PROJ_SRC_ROOT),$(PROJ_OBJ_ROOT))
        $(Verb) if test -d "$(PROJ_OBJ_ROOT)/include" ; then \
          cd $(PROJ_OBJ_ROOT)/include && \
-         for hdr in `find . -type f -print` ; do \
+         for hdr in `find . -type f -print | grep -v CVS` ; do \
            $(DataInstall) $$hdr $(PROJ_includedir)/$$hdr ; \
          done ; \
        fi
+endif
 
 uninstall-local::
        $(Echo) Uninstalling include files