Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add makefile target for spell checking #81

Merged
merged 3 commits into from
Nov 15, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
24 changes: 24 additions & 0 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,30 @@ vers_update:
chmod +x $$f; \
done

DOC_FILES = CHANGELOG.txt README.asciidoc BUGS.txt INSTALL.txt doc/a2x.1.txt \
doc/faq.txt doc/asciidocapi.txt doc/testasciidoc.txt \
doc/epub-notes.txt doc/publishing-ebooks-with-asciidoc.txt \
doc/source-highlight-filter.txt doc/slidy.txt doc/slidy-example.txt

WEBSITE_FILES = examples/website/index.txt examples/website/README-website.txt examples/website/support.txt

.PHONY: ${DOC_FILES}
${DOC_FILES}:
aspell check -p ./doc/asciidoc.dict $@

.PHONY: ${WEBSITE_FILES}
${WEBSITE_FILES}:
aspell check -p ./examples/website/asciidoc-website.dict $@

.PHONY: spell_doc
doc_spell: ${DOC_FILES}

.PHONY: spell_website
website_spell: ${WEBSITE_FILES}

.PHONY: spell
spell: doc_spell website_spell

build: fixconfpath $(manp)

install: all $(PROGTARGETS) $(DATATARGETS) progsymlink
Expand Down