File: Makefile.am

package info (click to toggle)
tinyproxy 1.11.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 916 kB
  • sloc: ansic: 6,317; sh: 365; perl: 349; makefile: 203; awk: 4
file content (36 lines) | stat: -rw-r--r-- 813 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
if HAVE_MANPAGE_INTEREST
MAN8_FILES  = \
	tinyproxy.txt
endif

M_SECTION=8
M_NAME=TINYPROXY

man_MANS = \
	$(MAN8_FILES:.txt=.8)

edit = sed \
	-e 's|@localstatedir[@]|$(localstatedir)|g' \
	-e 's|@runstatedir[@]|$(runstatedir)|g' \
	-e 's|@sysconfdir[@]|$(sysconfdir)|g' \
	-e 's|@TINYPROXY_STATHOST[@]|$(TINYPROXY_STATHOST)|g'

tinyproxy.txt: $(top_srcdir)/docs/man8/tinyproxy.txt.in Makefile
	@rm -f $@ $@.tmp
	$(AM_V_GEN) $(edit) $(top_srcdir)/docs/man8/$@.in > $@.tmp
	@mv $@.tmp $@

.txt.8:
if HAVE_POD2MAN
	$(AM_V_GEN) $(POD2MAN) --center="Tinyproxy manual" \
	--section=$(M_SECTION) --name=$(M_NAME) --release="Version @VERSION@" \
	$< > $@
else
	@echo "*** pod2man is required to regenerate $(@) ***"; exit 1;
endif

MAINTAINERCLEANFILES = \
	$(MAN8_FILES:.txt=.8)

EXTRA_DIST = \
	$(MAN8_FILES:.txt=.8)