# Makefile.in
#
# COPYRIGHT (c) 2023 The Fellowship of SML/NJ (http://www.smlnj.org)
# All rights reserved.
#
# Makefile for gen-pages tool
#
# @configure_input@
#

SHELL =        		@SHELL@
INSTALL =       	@INSTALL@
@SET_MAKE@

TOOL_BIN =		@TOOL_BIN_DIR@
ML_BUILD =		@ML_BUILD@
HEAP_SUFFIX =		@SMLNJ_HEAP_SUFFIX@
INSTALL_WRAPPER =       @ROOT_DIR@/bin/install-sml-wrapper.sh

PROGRAM =		gen-pages

HEAP_IMAGE =		$(PROGRAM).$(HEAP_SUFFIX)

.PHONY:			install
install:		$(HEAP_IMAGE)
	$(INSTALL_WRAPPER) $(PROGRAM) $(TOOL_BIN)

$(HEAP_IMAGE):		$(wildcard ../*.sml) $(wildcard *.sml)
	$(ML_BUILD) sources.cm Main.main $(PROGRAM)

include @MK_DIR@/clean-rules.gmk

CLEAN_FILES = $(HEAP_IMAGE)

DISTCLEAN_FILES = config.sml
