Skip to content

Commit

Permalink
Add makefile target for spell checking (#81)
Browse files Browse the repository at this point in the history
* Add makefile target for spell checking

* Separate out spell into two separate commands

* Update Makefile.in
  • Loading branch information
MasterOdin committed Nov 15, 2019
1 parent 684035e commit 099bca3
Showing 1 changed file with 24 additions and 0 deletions.
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

0 comments on commit 099bca3

Please sign in to comment.