mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-29 06:30:30 +00:00
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:
parent
67afaa1899
commit
13f99329ce
@ -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 $< $@
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user