File: Makefile.am

package info (click to toggle)
namazu2 2.0.21-22
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 7,032 kB
  • sloc: ansic: 14,161; perl: 10,789; sh: 9,355; lisp: 1,147; makefile: 914
file content (37 lines) | stat: -rw-r--r-- 1,112 bytes parent folder | download | duplicates (9)
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
37
# Process this file with automake to produce Makefile.in

man_MANS = namazu.1 mknmz.1
man_aux = $(man_MANS:.1=.x)

EXTRA_DIST = help2man $(man_MANS) $(man_aux)
MAINTAINERCLEANFILES = $(man_MANS)
HELP2MAN = $(PERL) -w -- $(srcdir)/help2man

namazu.1:
	@progname=`basename $@ .1`; \
	executable=$(top_builddir)/src/$$progname; \
	includes=$(srcdir)/$$progname.x; \
	if test -f $$executable; then \
	 rm -f t-$$progname.1; \
	 $(HELP2MAN) --include=$$includes --no-info \
	 $$executable > t-$$progname.1 || exit 1; \
	 mv t-$$progname.1 $$progname.1; \
	else \
	 echo "WARNING: The man page $@ cannot be updated yet."; \
	fi

mknmz.1:
	@progname=`basename $@ .1`; \
	executable=$(top_builddir)/scripts/$$progname; \
	includes=$(srcdir)/$$progname.x; \
	pkgdatadir=$(top_srcdir); \
	top_builddir=$(top_builddir); \
	export pkgdatadir;export top_builddir; \
	if test -f $$executable; then \
	 rm -f t-$$progname.1; \
	 $(HELP2MAN) --include=$$includes --no-info \
	 $$executable > t-$$progname.1 || exit 1; \
	 mv t-$$progname.1 $$progname.1; \
	else \
	 echo "WARNING: The man page $@ cannot be updated yet."; \
	fi