X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=Makefile;h=a9a59de8c1ab8120c17b953c6d4e62f0209e6528;hb=9f57b18d28f8f4ab604ebeba5a0c23d17d2f8c65;hp=85aa6d7eec7d4d7290dda8b65fe74f8bd702a4a9;hpb=6c0969696aac8fd475c55b0a9ecda5ceffb7da13;p=oota-llvm.git diff --git a/Makefile b/Makefile index 85aa6d7eec7..a9a59de8c1a 100644 --- a/Makefile +++ b/Makefile @@ -1,17 +1,17 @@ -##===- ./Makefile ------------------------------------------*- Makefile -*-===## +#===- ./Makefile -------------------------------------------*- Makefile -*--===# # # The LLVM Compiler Infrastructure # # This file was developed by the LLVM research group and is distributed under # the University of Illinois Open Source License. See LICENSE.TXT for details. # -##===----------------------------------------------------------------------===## +#===------------------------------------------------------------------------===# LEVEL = . DIRS = lib/Support utils lib tools -OPTIONAL_DIRS = projects ifneq ($(MAKECMDGOALS),tools-only) DIRS += runtime +OPTIONAL_DIRS = projects endif include $(LEVEL)/Makefile.common @@ -34,6 +34,9 @@ tools-only: all install-includes: $(MKDIR) $(DESTDIR)$(includedir)/llvm cd include && find * '!' '(' -name '*~' -o -name .cvsignore ')' -print | grep -v CVS | pax -rwdvpe $(DESTDIR)$(includedir)/llvm +ifneq ($(BUILD_SRC_ROOT),$(BUILD_OBJ_ROOT)) + cd $(BUILD_SRC_ROOT)/include && find * '!' '(' -name '*~' -o -name .cvsignore ')' -print | grep -v CVS | pax -rwdvpe $(DESTDIR)$(includedir)/llvm +endif install:: install-includes