From 13f99329ce1f7f2cc5f7bcaa07e38484e22eeed8 Mon Sep 17 00:00:00 2001 From: Brian Gaeke Date: Wed, 21 Jan 2004 23:57:21 +0000 Subject: [PATCH] Give the ".../llvm-gcc/bytecode-libs" directory a variable of its own, called bytecode_libdir. Make install-bytecode-library depend on the existence of that directory, and add a rule for creating it if it does not exist by calling mkinstalldirs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10946 91177308-0d34-0410-b5e6-96231b3b80d8 --- Makefile.rules | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile.rules b/Makefile.rules index 96df1461b13..325cf094963 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -482,9 +482,13 @@ LIBNAME_BC := $(DESTLIBBYTECODE)/lib$(LIBRARYNAME).bc # dynamic target builds a shared object version of the library... dynamic:: $(LIBNAME_CUR) bytecodelib:: $(LIBNAME_BC) -install-bytecode-library:: $(DESTDIR)$(LLVMGCCDIR)/bytecode-libs/lib$(LIBRARYNAME).bc +bytecode_libdir = $(LLVMGCCDIR)/bytecode-libs +install-bytecode-library:: $(DESTDIR)$(bytecode_libdir)/lib$(LIBRARYNAME).bc -$(DESTDIR)$(LLVMGCCDIR)/bytecode-libs/lib$(LIBRARYNAME).bc: $(LIBNAME_BC) +$(DESTDIR)$(bytecode_libdir): + $(MKDIR) $@ + +$(DESTDIR)$(bytecode_libdir)/lib$(LIBRARYNAME).bc: $(LIBNAME_BC) $(DESTDIR)$(bytecode_libdir) @${ECHO} ======= Installing $(LIBRARYNAME) bytecode library ======= cp $< $@ -- 2.34.1