File: Makefile

package info (click to toggle)
unoconv 0.7-1.1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 440 kB
  • ctags: 97
  • sloc: python: 973; makefile: 147; sh: 8
file content (32 lines) | stat: -rw-r--r-- 526 bytes parent folder | download | duplicates (3)
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
prefix = /usr
datadir = $(prefix)/share
mandir = $(datadir)/man

adoctargets = $(shell echo *.adoc)
htmltargets = $(patsubst %.adoc, %.html, $(adoctargets))

all: docs

dist: docs

man: unoconv.1

docs: unoconv.1 $(htmltargets)

install: unoconv.1
	install -Dp -m0644 unoconv.1 $(DESTDIR)$(mandir)/man1/unoconv.1

clean:
	rm -f unconv.1 *.html *.xml

%.1.html: %.1.adoc
	TZ=UTC asciidoc -d manpage $<

%.1: %.1.xml
	xmlto man $<

%.html: %.adoc
	TZ=UTC asciidoc $<

%.1.xml: %.1.adoc
	TZ=UTC asciidoc -b docbook -d manpage $<