
htmldir = ${datadir}/doc/${PACKAGE}-${SLURM_VERSION_STRING}/html

generated_html = \
	accounting.html \
	add.html \
	api.html \
	authentication.html \
	big_sys.html \
	burst_buffer.html \
	certmgr.html \
	cgroups.html \
	cgroup_v2.html \
	classic_fair_share.html \
	cli_filter_plugins.html \
	configless_slurm.html \
	cons_tres.html \
	cons_tres_share.html \
	containers.html \
	contributor.html \
	core_spec.html \
	cpu_management.html \
	dist_plane.html \
	documentation.html \
	dynamic_nodes.html \
	elasticsearch.html \
	extra_constraints.html \
	faq.html \
	federation.html \
	gang_scheduling.html \
	gres.html \
	gres_design.html \
	hdf5_profile_user_guide.html \
	heterogeneous_jobs.html \
	high_throughput.html \
	hres.html \
	jobcomp_kafka.html \
	job_array.html \
	job_exit_code.html \
	job_launch.html \
	job_reason_codes.html \
	job_state_codes.html \
	job_submit_plugins.html \
	jwt.html \
	kubernetes.html \
	licenses.html \
	fair_tree.html \
	mail.html \
	man_index.html \
	mc_support.html \
	mcs.html \
	metrics.html \
	mpi_guide.html \
	multi_cluster.html \
	namespace.html \
	network.html \
	nss_slurm.html \
	openapi_release_notes.html \
	overview.html \
	pam_slurm_adopt.html \
	platforms.html \
	plugins.html \
	power_save.html \
	preempt.html \
	prep_plugins.html \
	priority_multifactor.html \
	priority_multifactor3.html \
	programmer_guide.html \
	prolog_epilog.html \
	publications.html \
	qos.html \
	quickstart_admin.html \
	quickstart.html \
	related_software.html \
	release_notes.html \
	reservations.html \
	resource_binding.html \
	resource_limits.html \
	rest.html \
	rest_api.html \
	rest_clients.html \
	rest_quickstart.html \
	rosetta.html \
	sched_config.html \
	select_design.html \
	selinux.html \
	site_factor.html \
	slinky.html \
	slurm.html \
	tls.html \
	topology.html \
	tres.html \
	troubleshoot.html \
	upgrades.html \
	user_permissions.html \
	wckey.html

# The configurator pages are self-contained HTML and are always installed.
html_DATA = \
	configurator.html \
	configurator.easy.html

# Static assets referenced by the generated HTML (via header.txt). These are
# only useful alongside the full doc set, so they install with `make
# install-html` rather than with the default `make install`.
html_assets = \
	allocation_pies.gif \
	arch.gif \
	cg_hierarchy.jpg \
	entities.gif \
	example_usage.gif \
	fonts.css \
	fonts.ttf \
	hdf5_task_attr.png \
	hdf5_job_outline.png \
	jobcomp_kafka_fig1.png \
	jquery.min.js \
	k_function.gif \
	mc_support.gif \
	network_failover.gif \
	network_federation.gif \
	network_multi_cluster.gif \
	network_srun.gif \
	network_standard.gif \
	node_lifecycle.png \
	plane_ex1.gif \
	plane_ex2.gif \
	plane_ex3.gif \
	plane_ex4.gif \
	plane_ex5.gif \
	plane_ex6.gif \
	plane_ex7.gif \
	reset.css \
	openapi.css \
	slurm_logo.png \
	schedmd.png \
	slurm.css \
	squeue_color.png \
	style.css \
	topo_ex1.gif \
	topo_ex2.gif \
	usage_pies.gif

# Generated HTML is kept out of html_DATA so that `make` (and `make install`)
# do not rebuild it. Use `make html` to build and `make install-html` to
# install the generated pages along with their static assets.
html-local: ${generated_html}

install-html-local: ${generated_html}
	@$(NORMAL_INSTALL)
	test -z "$(htmldir)" || $(MKDIR_P) "$(DESTDIR)$(htmldir)"
	@list='$(generated_html) $(html_assets)'; for f in $$list; do \
	  if test -f "$$f"; then d=; else d="$(srcdir)/"; fi; \
	  echo " $(INSTALL_DATA) $$d$$f '$(DESTDIR)$(htmldir)'"; \
	  $(INSTALL_DATA) "$$d$$f" "$(DESTDIR)$(htmldir)" || exit $$?; \
	done

uninstall-local:
	@$(NORMAL_UNINSTALL)
	@list='$(generated_html) $(html_assets)'; for f in $$list; do \
	  echo " rm -f '$(DESTDIR)$(htmldir)/$$f'"; \
	  rm -f "$(DESTDIR)$(htmldir)/$$f"; \
	done

MOSTLYCLEANFILES = ${generated_html}

SUFFIXES = .html

.shtml.html:
	`dirname $<`/shtml2html.py @SLURM_MAJOR@.@SLURM_MINOR@ $<
