File: Makefile

package info (click to toggle)
proxytunnel 1.10.20210604-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 420 kB
  • sloc: ansic: 2,355; sh: 125; makefile: 84; pascal: 18
file content (27 lines) | stat: -rw-r--r-- 508 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
prefix = /usr/local
datadir = $(prefix)/share
mandir = $(datadir)/man

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

docs: proxytunnel.1 $(htmltargets)

install: proxytunnel.1
	install -d $(DESTDIR)$(mandir)/man1
	install -p proxytunnel.1 $(DESTDIR)$(mandir)/man1

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

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

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

%.html: %.adoc
	asciidoc $<

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