File: Makefile.am

package info (click to toggle)
libbash 0.9.11-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 776 kB
  • sloc: sh: 1,402; makefile: 53
file content (26 lines) | stat: -rw-r--r-- 668 bytes parent folder | download | duplicates (3)
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
AUTOMAKE_OPTIONS = -Wno-portability

EXTRA_DIST = $(wildcard *.sh) $(wildcard *.man)

# all libraries goes to lib/bash

bashlibdir = $(libdir)/bash
bashlib_DATA = $(wildcard *.sh)

# installing man pages
#######################

# getopts is treated specially since we install man pages in different sections
man3_MANS =	getopts.man
man1_MANS =	getopt_long.man

BASHLIBS = hashstash colors messages locks urlcoding

# The macro finds all man page files that reference $(1) in section $(2)
define GET_MANS
$(shell grep '^\.so man$(2)/$(1).$(2)$$' * |cut -f1 -d:)
endef

# note the `+'
$(foreach lib,$(BASHLIBS),$(eval man3_MANS+=$(lib).man $(call GET_MANS,$(lib),3)))