File: Makefile

package info (click to toggle)
w1retap 1.5.5-2.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,748 kB
  • sloc: ansic: 32,291; sql: 247; ruby: 205; sh: 157; makefile: 44; xml: 19
file content (40 lines) | stat: -rw-r--r-- 782 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40

SRC := $(wildcard *.adoc)
IMGS =
OUTDIR=.
OPTPDF=$(OUTDIR)/w1retap.pdf
PDF=$(OUTDIR)/w1retap_.pdf
ODT=$(OUTDIR)/w1retap.odt
HTML=$(OUTDIR)/w1retap.html
RES=resources/theme.yml

w1OPTS=-a pdf-theme=resources/theme.yml -a pdf-fontsdir=/usr/share/fonts/noto


.PHONY: all

all: $(OPTPDF)

.PHONY: pdf
pdf: $(OPTPDF)

$(OPTPDF): $(SRC) $(RES) $(IMGS)
	asciidoctor-pdf $(w1OPTS) -o $(OPTPDF) $(SRC)
	-hexapdf optimize --compress-pages --force $(OPTPDF) $(OPTPDF)

.PHONY: html
html: $(HTML)

$(HTML): $(SRC) $(RES) $(IMGS)
	asciidoctor-pdf --backend=html5 -o $(HTML) $(SRC)

.PHONY: odt
odt: $(ODT)

$(ODT):  $(SRC) $(RES) $(IMGS)
	asciidoctor-pdf --backend=docbook -o - $(SRC) | \
	pandoc --from docbook --to odt --output $(ODT) -


clean:
	@rm -f w1retap.pdf w1retap.html w1retap.odt