Add a TARGETS variable to collect ENabled targets, like INST_TARGETS.
INSTALL="${INSTALL} --preserve-timestamps"
fi
+TARGETS=
INST_TARGETS=
AC_ARG_ENABLE([html],
else
htmldir="${enable_html}"
fi
+test "${htmldir}" = "" || TARGETS="${TARGETS} \$(TARGET_ROOT)/index.html"
test "${htmldir}" = "" || INST_TARGETS="${INST_TARGETS} install-html"
AC_SUBST([htmldir])
else
pdfdir="${enable_pdf}"
fi
+test "${pdfdir}" = "" || TARGETS="${TARGETS} \$(TARGET_ROOT).pdf"
test "${pdfdir}" = "" || INST_TARGETS="${INST_TARGETS} install-pdf"
AC_SUBST([pdfdir])
else
psdir="${enable_ps}"
fi
+test "${psdir}" = "" || TARGETS="${TARGETS} \$(TARGET_ROOT).ps"
test "${psdir}" = "" || INST_TARGETS="${INST_TARGETS} install-ps"
AC_SUBST([psdir])
+AC_SUBST([TARGETS])
AC_SUBST([INST_TARGETS])
AC_CONFIG_FILES([
pdfdir = @pdfdir@
psdir = @psdir@
+TARGETS = @TARGETS@
INST_TARGETS = @INST_TARGETS@
INFO_TARGET = $(TARGET_ROOT).info
TEX_OPTIONS = --quiet $(EXTRA_TEX_OPTIONS)
-all: $(INFO_TARGET) $(HTML_TARGET)/index.html $(PDF_TARGET) $(PS_TARGET)
+all: $(INFO_TARGET) $(TARGETS)
$(INFO_TARGET): $(SOURCES)
rm -f $(INFO_TARGET)*