File: Makefile

package info (click to toggle)
ben 1.14
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 672 kB
  • sloc: ml: 4,116; sh: 345; javascript: 78; ansic: 39; makefile: 29; python: 18
file content (15 lines) | stat: -rw-r--r-- 512 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
all: ben.1 refman.html

REVISION=$(shell cd .. && dpkg-parsechangelog -S Version)
export SOURCE_DATE_EPOCH=$(shell cd .. && dpkg-parsechangelog -STimestamp)

ben.1:
	asciidoctor --backend manpage --doctype manpage -a localrevision='$(REVISION)' $@.txt

refman.html:
	asciidoctor -b html5 -a icons -a data-uri -a iconsdir=/usr/share/xml/docbook/stylesheet/docbook-xsl/images/ -a toc2 -a footer-style=none -a localrevision='$(REVISION)' $(@:.html=.txt)

.PHONY: ben.1 refman.html

clean:
	-rm -f refman.html ben.1