Commit cce5da57 authored by simonmar's avatar simonmar
Browse files

[project @ 2003-01-14 13:17:43 by simonmar]

Clean up properly after generating Haddock docs.
parent 0877011a
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
# $Id: package.mk,v 1.20 2002/12/12 13:28:35 simonmar Exp $ # $Id: package.mk,v 1.21 2003/01/14 13:17:43 simonmar Exp $
ifneq "$(PACKAGE)" "" ifneq "$(PACKAGE)" ""
...@@ -161,6 +161,8 @@ HTML_DOC = $(HTML_DIR)/index.html ...@@ -161,6 +161,8 @@ HTML_DOC = $(HTML_DIR)/index.html
ifneq "$(HS_PPS)" "" ifneq "$(HS_PPS)" ""
CLEAN_FILES += $(HS_PPS) $(addsuffix .tmp, $(basename $(HS_PPS)))
ifeq "$(HADDOCK)" "" ifeq "$(HADDOCK)" ""
html :: html ::
@echo Haddock must be installed in order to build HTML library documentation. @echo Haddock must be installed in order to build HTML library documentation.
...@@ -170,6 +172,9 @@ endif ...@@ -170,6 +172,9 @@ endif
html :: $(HTML_DOC) html :: $(HTML_DOC)
extraclean ::
$(RM) -rf $(HTML_DIR)
$(HTML_DOC) : $(HS_PPS) $(HTML_DOC) : $(HS_PPS)
@$(INSTALL_DIR) $(HTML_DIR) @$(INSTALL_DIR) $(HTML_DIR)
$(HADDOCK) $(HADDOCK_OPTS) -h -o $(HTML_DIR) $(HS_PPS) \ $(HADDOCK) $(HADDOCK_OPTS) -h -o $(HTML_DIR) $(HS_PPS) \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment