Make comparison on equalities work right (ie look at the types)
[ghc-hetmet.git] / docs / Makefile
1 TOP = ..
2 include $(TOP)/mk/boilerplate.mk
3
4 SUBDIRS = man docbook-cheat-sheet users_guide
5 ifneq "$(DOING_BIN_DIST)" "YES"
6 SUBDIRS += ext-core storage-mgt
7 endif
8
9 PAGE = index.html
10
11 install-docs :: $(PAGE)
12         $(INSTALL_DIR)                          $(DESTDIR)$(htmldir)
13         $(INSTALL_DATA) $(INSTALL_OPTS) $(PAGE) $(DESTDIR)$(htmldir)
14
15 .PHONY: binary-dist binary-dist.doc.%
16
17 binary-dist: $(foreach SUBDIR,$(SUBDIRS),binary-dist.doc.$(SUBDIR))
18         echo $(WHERE_AM_I)/Makefile >> $(BIN_DIST_LIST)
19         echo $(WHERE_AM_I)/$(PAGE)  >> $(BIN_DIST_LIST)
20
21 $(foreach SUBDIR,$(SUBDIRS),binary-dist.doc.$(SUBDIR)): \
22 binary-dist.doc.%:
23         $(MAKE) -C $* binary-dist WHERE_AM_I=$(WHERE_AM_I)/$*
24
25 include $(TOP)/mk/target.mk