From 7fa720262168acc83136d9ffc27b5765c5e13969 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Wed, 4 Sep 2013 16:48:53 -0700 Subject: [PATCH] Don't try to install 32- or 64-bit libraries if not compiled. We only conditionally compile these libraries, so we should also only conditionally install them. --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 48cb49e..f211722 100644 --- a/Makefile +++ b/Makefile @@ -59,10 +59,14 @@ glaze-find-libgl-64: glaze-find-libgl.c .PHONY: install install: all +ifeq ($(COMPILER_SUPPORTS_64),Yes) mkdir -p $(DESTDIR)$(LIBDIR)/glaze/$(LIB64_DIR) install -m0644 $(LIB64_DIR)/libGL.so.1 $(DESTDIR)$(LIBDIR)/glaze/$(LIB64_DIR) +endif +ifeq ($(COMPILER_SUPPORTS_32),Yes) mkdir -p $(DESTDIR)$(LIBDIR)/glaze/$(LIB32_DIR) install -m0644 $(LIB32_DIR)/libGL.so.1 $(DESTDIR)$(LIBDIR)/glaze/$(LIB32_DIR) +endif install -m0644 $(LIBGLAZE_LIBNAME) $(DESTDIR)$(LIBDIR) ln -sf $(LIBGLAZE_LIBNAME) $(DESTDIR)$(LIBDIR)/$(LIBGLAZE_SONAME) ln -sf $(LIBGLAZE_LIBNAME) $(DESTDIR)$(LIBDIR)/$(LIBGLAZE_LINKER_NAME) -- 2.43.0