diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2004-01-21 23:57:21 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2004-01-21 23:57:21 +0000 |
commit | 13f99329ce1f7f2cc5f7bcaa07e38484e22eeed8 (patch) | |
tree | a4c3b511faef81a39c70da0ec9122d685fcc00b9 /Makefile.rules | |
parent | 67afaa1899bb51ca89a0ae40c1608802dfb2da74 (diff) | |
download | llvm-13f99329ce1f7f2cc5f7bcaa07e38484e22eeed8.tar.gz llvm-13f99329ce1f7f2cc5f7bcaa07e38484e22eeed8.tar.bz2 llvm-13f99329ce1f7f2cc5f7bcaa07e38484e22eeed8.tar.xz |
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
Diffstat (limited to 'Makefile.rules')
-rw-r--r-- | Makefile.rules | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile.rules b/Makefile.rules index 96df1461b1..325cf09496 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 $< $@ |