# [ -e foo/configure.ac ] && ( cd foo && autoreconf )
# make make.library.foo
-.PHONY: default_target
+.PHONY: default_target show
default_target: all
+show:
+ @echo '$(VALUE)="$($(VALUE))"'
+
# make doesn't give us an easy way to get the libraries built in
# dependency order the first time, but not rebuild base (for example)
# when we want to rebuild another library later.
# -----------------------------------------------------------------------------
+libraryhtmldir = $(htmldir)/libraries
+
ifneq "$(DOING_BIN_DIST)" "YES"
CONFIGURE_OPTS =
# the executable with the shell script on non-Windows. This should
# probably be tidied up so that we can always pass the same libsubdir.
ifeq "$(Windows)" "YES"
-datadir = $$prefix
libsubdir = $$pkgid
else
-datadir = $$prefix/share/ghc
libsubdir = $$compiler/lib/$$pkgid
endif
-libraryhtmldir = $(htmldir)/libraries
# We rely on all the CONFIGURE_ARGS being quoted with '...', and there
# being no 's inside the values.
--with-hc-pkg=../../utils/ghc-pkg/ghc-pkg-inplace$ \
--with-hsc2hs=../../utils/hsc2hs/hsc2hs-inplace \
--with-ld=$(LD) \
- --haddock-args="--use-contents=../index.html \
+ --haddock-options="--use-contents=../index.html \
--use-index=../doc-index.html" \
$(FLAGGED_CONFIGURE_ARGS) \
--configure-option=--with-cc=$(CC) ) \
install.library.%: installPackage/installPackage ifBuildable/ifBuildable
if ifBuildable/ifBuildable $*; then \
cd $* && \
- ../installPackage/installPackage "$(DESTDIR)" $(prefix) $(GHC_PKG_PROG) $(DESTDIR)$(libdir)/package.conf; \
+ ../installPackage/installPackage "$(DESTDIR)" "$(prefix)" "$(datadir)" "$(libraryhtmldir)" "$(GHC_PKG_PROG)" "$(DESTDIR)$(libdir)/package.conf" ; \
fi
.PHONY: binary-dist binary-dist.library.%
$(foreach SUBDIR,$(SUBDIRS),binary-dist.library.$(SUBDIR)): \
binary-dist.library.%:
- $(MKDIRHIER) $(BIN_DIST_LIBDIR)/$*
if ifBuildable/ifBuildable $*; then \
+ $(MKDIRHIER) $(BIN_DIST_LIBDIR)/$*; \
cd $* && \
cp $*.cabal $(BIN_DIST_LIBDIR)/$* && \
cp LICENSE $(BIN_DIST_LIBDIR)/$* && \