diff options
author | Dylan Noblesmith <nobled@dreamwidth.org> | 2012-02-01 22:23:31 +0000 |
---|---|---|
committer | Dylan Noblesmith <nobled@dreamwidth.org> | 2012-02-01 22:23:31 +0000 |
commit | 873488a9d5ab7774bdcccada7ef0f90e5e5eda14 (patch) | |
tree | 76119394e98481b58ca47a5e156c166ae3b43e01 /include/clang-c | |
parent | eafa50bbdfc5bf34664fbf59e09e4982c6e35097 (diff) |
make: fix installation of generated header files
The PROJ_SRC_DIR != PROJ_OBJ_DIR path was missing the directory
creation logic that was in the path for non-generated headers.
PR11903.
(The oversight was copied and pasted from LLVM's Makefile.rules,
where it apparently existed since time immemorial til it was
corrected in r127325.)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149551 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang-c')
-rw-r--r-- | include/clang-c/Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/clang-c/Makefile b/include/clang-c/Makefile index 81f5f41b17..b29e29ea1e 100644 --- a/include/clang-c/Makefile +++ b/include/clang-c/Makefile @@ -27,6 +27,11 @@ ifneq ($(PROJ_SRC_ROOT),$(PROJ_OBJ_ROOT)) cd $(PROJ_OBJ_ROOT)/tools/clang/include && \ for hdr in `find clang-c -type f '!' '(' -name 'Makefile' ')' -print \ | grep -v CVS | grep -v .tmp | grep -v .dir` ; do \ + instdir=`dirname "$(IntIncludeDir)/$$hdr"` ; \ + if test \! -d "$$instdir" ; then \ + $(EchoCmd) Making install directory $$instdir ; \ + $(MKDIR) $$instdir ;\ + fi ; \ $(DataInstall) $$hdr $(IntIncludeDir)/$$hdr ; \ done ; \ fi |