-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# This Makefile is to convert supplied Asciidoc files into | ||
# other formats like pdf and man. The files contain ZI's | ||
# code documentation. | ||
# *.adoc files are generated root directory Makefile. | ||
|
||
all: man pdf | ||
|
||
# MAN | ||
# Converted with a2x from asciidoc package | ||
|
||
man: man/zinit.zsh.1 man/zinit-side.zsh.1 man/zinit-install.zsh.1 man/zinit-autoload.zsh.1 | ||
|
||
man/zinit.zsh.1: | ||
@mkdir -p man | ||
a2x --verbose -L --doctype manpage --format manpage -D man zinit.zsh.adoc | ||
|
||
man/zinit-side.zsh.1: | ||
@mkdir -p man | ||
a2x --verbose -L --doctype manpage --format manpage -D man zinit-side.zsh.adoc | ||
|
||
man/zinit-install.zsh.1: | ||
@mkdir -p man | ||
a2x --verbose -L --doctype manpage --format manpage -D man zinit-install.zsh.adoc | ||
|
||
man/zinit-autoload.zsh.1: | ||
@mkdir -p man | ||
a2x --verbose -L --doctype manpage --format manpage -D man zinit-autoload.zsh.adoc | ||
|
||
# Uses asciidoctor not a2x (i.e. not asciidoc) | ||
|
||
pdf: pdf/zinit.zsh.pdf pdf/zinit-side.zsh.pdf pdf/zinit-install.zsh.pdf pdf/zinit-autoload.zsh.pdf | ||
|
||
pdf/zinit.zsh.pdf: | ||
@mkdir -p pdf | ||
asciidoctor -a reproducible -b pdf -r asciidoctor-pdf -D pdf zinit.zsh.adoc | ||
|
||
pdf/zinit-side.zsh.pdf: | ||
@mkdir -p pdf | ||
asciidoctor -a reproducible -b pdf -r asciidoctor-pdf -D pdf zinit-side.zsh.adoc | ||
|
||
pdf/zinit-install.zsh.pdf: | ||
@mkdir -p pdf | ||
asciidoctor -a reproducible -b pdf -r asciidoctor-pdf -D pdf zinit-install.zsh.adoc | ||
|
||
pdf/zinit-autoload.zsh.pdf: | ||
@mkdir -p pdf | ||
asciidoctor -a reproducible -b pdf -r asciidoctor-pdf -D pdf zinit-autoload.zsh.adoc | ||
|
||
clean: | ||
rm -rf man pdf data | ||
|
||
.PHONY: man pdf clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env zsh | ||
|
||
zcompile "$@" |