fix a warning
[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 PAGES = index.html
10
11 install-docs :: $(PAGES)
12         $(INSTALL_DIR)                                                   $(DESTDIR)$(htmldir)
13         $(INSTALL_DATA) $(INSTALL_OPTS) $(PAGES) $(DESTDIR)$(htmldir)
14
15 .PHONY: binary-dist binary-dist.doc.%
16
17 binary-dist: $(foreach SUBDIR,$(SUBDIRS),binary-dist.doc.$(SUBDIR))
18         $(MKDIRHIER) $(BIN_DIST_DIR)/docs
19         cp Makefile $(BIN_DIST_DIR)/docs/
20         cp $(PAGES) $(BIN_DIST_DIR)/docs/
21
22 $(foreach SUBDIR,$(SUBDIRS),binary-dist.doc.$(SUBDIR)): \
23 binary-dist.doc.%:
24         $(MAKE) -C $* binary-dist
25
26 include $(TOP)/mk/target.mk