<commit_before># ------------------------------------------------------------------------------
# Makefile for GitHub project cmpi-wg/cmpi-headers.git
#
# Supported platforms for this makefile:
#   Linux
#   Not tested on Windows, may work when using CygWin
#
# Prerequisites:
#   make (GNU make)
#   doxygen 1.8.2 or higher
#   sh, echo, cd, test, rm, mkdir
#   zip, unzip
# ------------------------------------------------------------------------------

# CMPI version in m.n.u format
cmpi_version := 2.1.0

# Work directory of corresponding GitHub pages project
github_pages_work_dir := ../cmpi-wg.github.io.git

# Unpack location for Doxygen HTML ZIP file within GitHub pages project
github_pages_unpack_dir := $(github_pages_work_dir)/cmpi-releases/$(cmpi_version)

# Doxygen HTML output directory in this project.
# Keep in sync with HTML_OUTPUT parameter in Doxyfile
doxygen_html_out_dir := doxygen/html
doxygen_html_out_updir := ../..

# Doxygen extra CSS stylesheet file.
# Keep in sync with HTML_EXTRA_STYLESHEET parameter in Doxyfile
doxygen_css_file := doxygen_cmpi.css

# Doxygen mainpage file.
# Keep in sync with USE_MDFILE_AS_MAINPAGE parameter in Doxyfile
doxygen_mainpage_file := mainpage.md

# Generated Doxygen HTML ZIP file
doxygen_html_zip_file := doxygen_html.zip

# Doxygen command and any options
doxygen_cmd := doxygen


# No built-in rules needed
.SUFFIXES:

.PHONY: build publish clean all help

build: $(doxygen_html_zip_file)
	@echo 'Makefile: $@ done; created: $(doxygen_html_zip_file)'

publish: $(github_pages_unpack_dir) build
	test -d $(github_pages_unpack_dir)
	sh -c 'cd $(github_pages_unpack_dir); rm -rf *'
	unzip -qo -d $(github_pages_unpack_dir) $(doxygen_html_zip_file)
	@echo 'Makefile: $@ done; published to: $(github_pages_unpack_dir)'

clean:
	rm -rf doxygen
	@echo 'Makefile: $@ done.'

clobber: clean
	rm -f $(doxygen_html_zip_file)
	@echo 'Makefile: $@ done.'

all: build publish clean
	@echo 'Makefile: $@ done.'

help:
	@echo 'Makefile for CMPI headers project'
	@echo 'Valid targets are:'
	@echo '  build   - (default) Build the Doxygen HTML zip file: $(doxygen_html_zip_file)'
	@echo '  publish - Publish the Doxygen HTML files to: $(github_pages_unpack_dir)'
	@echo '  clean   - Remove any temporary files.'
	@echo '  clobber - Remove any temporary and generated files.'
	@echo '  all     - build, publish, clean'

# Documentation for package (generates more .html files than just this target)
$(doxygen_html_zip_file): Doxyfile cmpi*.h resources/*.png $(doxygen_css_file) \
		$(doxygen_mainpage_file) modules.dox
	mkdir -p $(doxygen_html_out_dir)
	sh -c 'cd $(doxygen_html_out_dir); rm -rf *'
	$(doxygen_cmd)
	sh -c 'cd $(doxygen_html_out_dir); zip -qru $(doxygen_html_out_updir)/$(doxygen_html_zip_file) .'
<commit_msg>Improved descriptions in makefile.<commit_after># ------------------------------------------------------------------------------
# Makefile for GitHub project cmpi-wg/cmpi-headers
#
# Supported platforms for this makefile:
#   Linux
#   Not tested on Windows, may work when using CygWin
#
# Prerequisites:
#   make (GNU make)
#   doxygen 1.8.2 or higher
#   sh, echo, cd, test, rm, mkdir
#   zip, unzip
#
# It is assumed that the GitHub project cmpi-wg/cmpi-wg.github.io has its work
# directory in the location specified by the github_pages_work_dir variable.
# ------------------------------------------------------------------------------

# CMPI version in m.n.u format.
# Keep in sync with the CMPI header files
cmpi_version := 2.1.0

# Work directory of corresponding GitHub pages project
github_pages_work_dir := ../cmpi-wg.github.io.git

# Unpack location for Doxygen HTML ZIP file within GitHub pages project
github_pages_unpack_dir := $(github_pages_work_dir)/cmpi-releases/$(cmpi_version)

# Doxygen HTML output directory in this project.
# Keep in sync with HTML_OUTPUT parameter in Doxyfile
doxygen_html_out_dir := doxygen/html
doxygen_html_out_updir := ../..

# Doxygen extra CSS stylesheet file.
# Keep in sync with HTML_EXTRA_STYLESHEET parameter in Doxyfile
doxygen_css_file := doxygen_cmpi.css

# Doxygen mainpage file.
# Keep in sync with USE_MDFILE_AS_MAINPAGE parameter in Doxyfile
doxygen_mainpage_file := mainpage.md

# Generated Doxygen HTML ZIP file
doxygen_html_zip_file := doxygen_html.zip

# Doxygen command and any options
doxygen_cmd := doxygen


# No built-in rules needed
.SUFFIXES:

.PHONY: build publish clean all help

build: $(doxygen_html_zip_file)
	@echo 'Makefile: $@ done; created: $(doxygen_html_zip_file)'

publish: $(github_pages_unpack_dir) build
	test -d $(github_pages_unpack_dir)
	sh -c 'cd $(github_pages_unpack_dir); rm -rf *'
	unzip -qo -d $(github_pages_unpack_dir) $(doxygen_html_zip_file)
	@echo 'Makefile: $@ done; published to: $(github_pages_unpack_dir)'

clean:
	rm -rf doxygen
	@echo 'Makefile: $@ done.'

clobber: clean
	rm -f $(doxygen_html_zip_file)
	@echo 'Makefile: $@ done.'

all: build publish clean
	@echo 'Makefile: $@ done.'

help:
	@echo 'Makefile for CMPI headers project'
	@echo 'Valid targets are:'
	@echo '  build   - (default) Build the Doxygen HTML zip file: $(doxygen_html_zip_file)'
	@echo '  publish - Publish the Doxygen HTML files to: $(github_pages_unpack_dir)'
	@echo '  clean   - Remove any temporary files.'
	@echo '  clobber - Remove any temporary files and build products.'
	@echo '  all     - build, publish, clean'

# Doxygen HTML zip file.
# Because it is hard to capture all generated HTML files, they are considered
# an intermediate product (= temporary files) and the zip file picking them up
# is considered the build product.
$(doxygen_html_zip_file): Doxyfile cmpi*.h resources/*.png $(doxygen_css_file) \
		$(doxygen_mainpage_file) modules.dox
	mkdir -p $(doxygen_html_out_dir)
	sh -c 'cd $(doxygen_html_out_dir); rm -rf *'
	$(doxygen_cmd)
	sh -c 'cd $(doxygen_html_out_dir); zip -qru $(doxygen_html_out_updir)/$(doxygen_html_zip_file) .'

{'fraction_non_alphanumeric': 0.148705802740653, 'fraction_numerical': 0.002030113347995263, 'mean_word_length': 3.5337423312883436, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3444629', 'n_tokens_mistral': 2057, 'n_tokens_neox': 1946, 'n_words': 601}