summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
e7c3f95)
Fix library installation: we now install libraries *unless*
NO_INSTALL_LIBRARY=YES.
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
-# $Id: package.mk,v 1.47 2005/02/09 10:11:36 simonmar Exp $
+# $Id: package.mk,v 1.48 2005/02/10 13:38:35 simonmar Exp $
INSTALL_IFACES += $(HS_IFACES)
endif
INSTALL_IFACES += $(HS_IFACES)
endif
-# install library (could be implicitly specified or explicitly, like libHS*_cbits.a)
-INSTALL_LIBS += $(LIBRARY)
-
# -----------------------------------------------------------------------------
# Dependencies
# -----------------------------------------------------------------------------
# Dependencies
endif # $(PACKAGE) != ""
#--------------------------------------------------------------
endif # $(PACKAGE) != ""
#--------------------------------------------------------------
+# Installation
+
+ifneq "$(NO_INSTALL_LIBRARY)" "YES"
+INSTALL_LIBS += $(LIBRARY) $(GHCI_LIBRARY)
+endif
+
+#--------------------------------------------------------------
# Building dynamically-linkable libraries for GHCi
#
# Build $(GHCI_LIBRARY) whenever we build $(LIBRARY)
# Building dynamically-linkable libraries for GHCi
#
# Build $(GHCI_LIBRARY) whenever we build $(LIBRARY)
GHCI_LIBRARY = $(patsubst lib%.a,%.o,$(LIBRARY))
GHCI_LIBRARY = $(patsubst lib%.a,%.o,$(LIBRARY))
+ifneq "$(NO_INSTALL_LIBRARY)" "YES"
INSTALL_LIBS += $(GHCI_LIBRARY)
endif
INSTALL_LIBS += $(GHCI_LIBRARY)
endif