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
This commit is contained in:
Brian Gaeke 2004-01-21 23:57:21 +00:00
parent 67afaa1899
commit 13f99329ce

View File

@ -482,9 +482,13 @@ LIBNAME_BC := $(DESTLIBBYTECODE)/lib$(LIBRARYNAME).bc
# dynamic target builds a shared object version of the library... # dynamic target builds a shared object version of the library...
dynamic:: $(LIBNAME_CUR) dynamic:: $(LIBNAME_CUR)
bytecodelib:: $(LIBNAME_BC) 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 ======= @${ECHO} ======= Installing $(LIBRARYNAME) bytecode library =======
cp $< $@ cp $< $@