aboutsummaryrefslogtreecommitdiff
path: root/ghc.mk
blob: db046b54de00f809fcb4fac4a2fa10fa5ffd860b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
utils/haddock_USES_CABAL = YES
utils/haddock_PACKAGE = haddock
utils/haddock_CONFIGURE_OPTS = --flag in-ghc-tree
# XXX This is a temporary hack:
utils/haddock_HC_OPTS += -Wwarn
utils/haddock_dist_SHELL_WRAPPER = YES
utils/haddock_dist_PROG = haddock
# XXX Is this a hack? Should it be needed? Done another way?
utils/haddock_dist_DATADIR = lib

$(INPLACE_BIN)/$(utils/haddock_dist_PROG): inplace/lib/html

inplace/lib/html:
	$(RM) -rf $@
	cp -a utils/haddock/html $@

INSTALL_LIBEXECS += utils/haddock/dist/build/$(utils/haddock_dist_PROG)

install: install_utils/haddock_html
.PHONY: install_utils/haddock_html
install_utils/haddock_html:
	$(RM) -rf $(DESTDIR)$(datadir)/html
	$(CP) -R utils/haddock/html $(DESTDIR)$(datadir)/html

$(eval $(call build-prog,utils/haddock,dist,2))

utils/haddock_dist_MODULES += Paths_haddock