From: Carl Worth Date: Mon, 7 Oct 2013 22:33:52 +0000 (-0700) Subject: Makefile: Don't install 32/64-bit target if not compiled X-Git-Url: https://git.cworth.org/git?p=fips;a=commitdiff_plain;h=7e1685c0ea738d7f1d9347168a966daa318befb3 Makefile: Don't install 32/64-bit target if not compiled We are already contionally compiling these, so the right answer is to only conditionally install them as well. --- diff --git a/Makefile.local b/Makefile.local index 7660d72..8d2475b 100644 --- a/Makefile.local +++ b/Makefile.local @@ -118,8 +118,12 @@ install: all mkdir -p $(DESTDIR)$(bindir) install fips $(DESTDIR)$(bindir)/fips mkdir -p $(DESTDIR)$(libdir)/fips +ifeq ($(COMPILER_SUPPORTS_32), Yes) install -m0644 libfips-32.so $(DESTDIR)$(libdir)/fips/libfips-32.so +endif +ifeq ($(COMPILER_SUPPORTS_64), Yes) install -m0644 libfips-64.so $(DESTDIR)$(libdir)/fips/libfips-64.so +endif ifeq ($(MAKECMDGOALS), install) @echo "" @echo "Fips is now installed to $(DESTDIR)$(prefix)"