mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-02-17 07:33:57 +00:00
30 lines
726 B
Makefile
30 lines
726 B
Makefile
all: pdf html
|
|
|
|
ASCIIDOCS = $(wildcard SOGo*.asciidoc)
|
|
PDFS = $(patsubst %.asciidoc,%.pdf, $(ASCIIDOCS))
|
|
HTML = $(patsubst %.asciidoc,%.html, $(ASCIIDOCS))
|
|
|
|
%.pdf: %.asciidoc asciidoctor-pdf-theme.yml $(wildcard includes/*.asciidoc)
|
|
asciidoctor-pdf \
|
|
-a pdf-fontsdir=fonts \
|
|
-a release_version=`git describe --abbrev=0 --tags | cut -d'-' -f 2` \
|
|
-a release_month=`LANG=en_US.UTF-8 date +%B` \
|
|
-a pdf-theme=asciidoctor-pdf-theme.yml \
|
|
--trace \
|
|
$<
|
|
|
|
%.html: %.asciidoc $(wildcard includes/*.asciidoc)
|
|
asciidoctor \
|
|
-D . \
|
|
-a release_version=`git describe --abbrev=0 --tags | cut -d'-' -f 2` \
|
|
-a release_month=`LANG=en_US.UTF-8 date +%B` \
|
|
-n \
|
|
$<
|
|
|
|
pdf: $(PDFS)
|
|
|
|
html: $(HTML)
|
|
|
|
clean:
|
|
rm -f *.pdf *.html
|