Remove legacy CMake targets for libcxx and libcxxabi

We've been meaning to remove those targets for a while, and the fix is
simple enough cause they're all just aliases to other targets.

There's no doubt this commit will break some CI systems, however the
fix is trivial.

Differential Revision: https://reviews.llvm.org/D76104

Cr-Mirrored-From: https://chromium.googlesource.com/external/github.com/llvm/llvm-project
Cr-Mirrored-Commit: f383fb40b17b6b39b37da588ff3c8a2972c685ad
diff --git a/docs/BuildingLibcxx.rst b/docs/BuildingLibcxx.rst
index f2fff0e..ab5c72d 100644
--- a/docs/BuildingLibcxx.rst
+++ b/docs/BuildingLibcxx.rst
@@ -68,7 +68,7 @@
           -DLIBCXX_CXX_ABI_INCLUDE_PATHS=path/to/separate/libcxxabi/include \
           path/to/llvm-project/libcxx
   $ make
-  $ make check-libcxx # optional
+  $ make check-cxx # optional
 
 
 Experimental Support for Windows
diff --git a/docs/TestingLibcxx.rst b/docs/TestingLibcxx.rst
index d295d13..0dddfd6 100644
--- a/docs/TestingLibcxx.rst
+++ b/docs/TestingLibcxx.rst
@@ -8,9 +8,9 @@
 Getting Started
 ===============
 
-libc++ uses LIT to configure and run its tests. 
+libc++ uses LIT to configure and run its tests.
 
-The primary way to run the libc++ tests is by using `make check-libcxx`. 
+The primary way to run the libc++ tests is by using `make check-cxx`.
 
 However since libc++ can be used in any number of possible
 configurations it is important to customize the way LIT builds and runs
diff --git a/include/CMakeLists.txt b/include/CMakeLists.txt
index ca6c7c5..2f375f1 100644
--- a/include/CMakeLists.txt
+++ b/include/CMakeLists.txt
@@ -270,8 +270,5 @@
                               -P "${CMAKE_BINARY_DIR}/cmake_install.cmake")
     # Stripping is a no-op for headers
     add_custom_target(install-${CXX_HEADER_TARGET}-stripped DEPENDS install-${CXX_HEADER_TARGET})
-
-    add_custom_target(install-libcxx-headers DEPENDS install-${CXX_HEADER_TARGET})
-    add_custom_target(install-libcxx-headers-stripped DEPENDS install-${CXX_HEADER_TARGET}-stripped)
   endif()
 endif()
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 2a9d054..623b85c 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -392,5 +392,4 @@
                       -DCMAKE_INSTALL_COMPONENT=cxx
                       -DCMAKE_INSTALL_DO_STRIP=1
                       -P "${LIBCXX_BINARY_DIR}/cmake_install.cmake")
-    add_custom_target(install-libcxx DEPENDS install-cxx)
 endif()
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 8147451..e779bc2 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -83,8 +83,6 @@
     "Running libcxx tests"
     ${CMAKE_CURRENT_BINARY_DIR}
     DEPENDS cxx ${LIBCXX_TEST_DEPS})
-
-  add_custom_target(check-libcxx DEPENDS check-cxx)
 endif()
 
 if (LIBCXX_GENERATE_COVERAGE)