[llvm-commits] CVS: llvm/Makefile.rules

Brian Gaeke gaeke at cs.uiuc.edu
Wed Jan 21 17:58:04 PST 2004


Changes in directory llvm:

Makefile.rules updated: 1.173 -> 1.174

---
Log message:

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.


---
Diffs of the changes:  (+6 -2)

Index: llvm/Makefile.rules
diff -u llvm/Makefile.rules:1.173 llvm/Makefile.rules:1.174
--- llvm/Makefile.rules:1.173	Wed Jan 21 15:20:44 2004
+++ llvm/Makefile.rules	Wed Jan 21 17:57:21 2004
@@ -482,9 +482,13 @@
 # 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 $< $@
 





More information about the llvm-commits mailing list