--- a/src/HOLCF/Makefile Fri Feb 09 18:56:39 1996 +0100
+++ b/src/HOLCF/Makefile Sat Feb 10 19:04:21 1996 +0100
@@ -36,14 +36,19 @@
$(BIN)/HOLCF: $(BIN)/HOL $(FILES)
case "$(COMP)" in \
poly*) cp $(BIN)/HOL $(BIN)/HOLCF;\
- if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
+ if [ "$${MAKE_HTML}" = "true" ]; \
then echo 'open PolyML; make_html := true; exit_use_dir".";' \
| $(COMP) $(BIN)/HOLCF;\
- else echo 'open PolyML; exit_use_dir".";' \
+ elif [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
+ then echo 'open PolyML; make_html := true; exit_use_dir"."; make_html := false;' | $(COMP) $(BIN)/HOLCF;\
+ else echo 'open PolyML; exit_use_dir".";' \
| $(COMP) $(BIN)/HOLCF;\
fi;;\
- sml*) if [ "$${MAKE_HTML-undefined}" != "undefined" ];\
+ sml*) if [ "$${MAKE_HTML}" = "true" ]; \
then echo 'make_html := true; exit_use_dir"."; xML"$(BIN)/HOLCF" banner;' | $(BIN)/HOL;\
+ elif [ "$${MAKE_HTML-undefined}" != "undefined" ];\
+ then echo 'make_html := true; exit_use_dir"."; make_html := false; xML"$(BIN)/HOLCF" banner;' \
+ | $(BIN)/HOL;\
else echo 'exit_use_dir"."; xML"$(BIN)/HOLCF" banner;' \
| $(BIN)/HOL;\
fi;;\
@@ -61,8 +66,16 @@
test: ex/ROOT.ML $(BIN)/HOLCF $(EX_FILES)
case "$(COMP)" in \
- poly*) echo 'exit_use_dir"ex"; quit();' | $(COMP) $(BIN)/HOLCF ;;\
- sml*) echo 'exit_use_dir"ex"' | $(BIN)/HOLCF;;\
+ poly*) if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
+ then echo 'make_html := true; exit_use_dir"ex"; quit();' \
+ | $(COMP) $(BIN)/HOLCF;\
+ else echo 'exit_use_dir"ex"; quit();' | $(COMP) $(BIN)/HOLCF;\
+ fi;;\
+ sml*) if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
+ then echo 'make_html := true; exit_use_dir"ex";' \
+ | $(BIN)/HOLCF;\
+ else echo 'exit_use_dir"ex";' | $(BIN)/HOLCF;\
+ fi;;\
*) echo Bad value for ISABELLECOMP: \
$(COMP) is not poly or sml;;\
esac
@@ -77,9 +90,16 @@
test2: explicit_domains/ROOT.ML $(BIN)/HOLCF $(EXPLICIT_DOMAINS_FILES)
case "$(COMP)" in \
- poly*) echo 'exit_use_dir"explicit_domains"; quit();' \
- | $(COMP) $(BIN)/HOLCF ;;\
- sml*) echo 'exit_use_dir"explicit_domains"' | $(BIN)/HOLCF;;\
+ poly*) if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
+ then echo 'make_html := true; exit_use_dir"explicit_domains"; quit();' | $(COMP) $(BIN)/HOLCF;\
+ else echo 'exit_use_dir"explicit_domains"; quit();' \
+ | $(COMP) $(BIN)/HOLCF;\
+ fi;;\
+ sml*) if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
+ then echo 'make_html := true; exit_use_dir"exlicit_domains";' \
+ | $(BIN)/HOLCF;\
+ else echo 'exit_use_dir"explicit_domains";' | $(BIN)/HOLCF;\
+ fi;;\
*) echo Bad value for ISABELLECOMP: \
$(COMP) is not poly or sml;;\
esac