File: Makefile

package info (click to toggle)
proxytunnel 1.9.0%2Bsvn250-6
  • links: PTS
  • area: main
  • in suites: buster, stretch
  • size: 452 kB
  • ctags: 368
  • sloc: ansic: 2,082; makefile: 79; pascal: 18
file content (26 lines) | stat: -rw-r--r-- 486 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
prefix = /usr/local
datadir = $(prefix)/share
mandir = $(datadir)/man

txttargets = $(shell echo *.txt)
htmltargets = $(patsubst %.txt, %.html, $(txttargets))

docs: proxytunnel.1 $(htmltargets)

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

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

%.1.html: %.1.txt
	asciidoc -d manpage $<

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

%.html: %.txt
	asciidoc $<

%.1.xml: %.1.txt
	asciidoc -b docbook -d manpage $<