]> git.cworth.org Git - glaze/commitdiff
Don't try to install 32- or 64-bit libraries if not compiled.
authorCarl Worth <cworth@cworth.org>
Wed, 4 Sep 2013 23:48:53 +0000 (16:48 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 4 Sep 2013 23:48:53 +0000 (16:48 -0700)
We only conditionally compile these libraries, so we should also only
conditionally install them.

Makefile

index 48cb49e997c3a59a6dc273b3c2401c1dd513fe52..f211722a52c7424a5b61f644687d49ec98311097 100644 (file)
--- 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)