37 |
manpath := $(manpath) |
manpath := $(manpath) |
38 |
zsoelim := $(zsoelim) |
zsoelim := $(zsoelim) |
39 |
|
|
40 |
|
# capitalized variants for .TH lines |
41 |
|
thman := $(shell echo '$(man)' | tr '[:lower:]' '[:upper:]') |
42 |
|
thmandb := $(shell echo '$(mandb)' | tr '[:lower:]' '[:upper:]') |
43 |
|
thwhatis := $(shell echo '$(whatis)' | tr '[:lower:]' '[:upper:]') |
44 |
|
thapropos := $(shell echo '$(apropos)' | tr '[:lower:]' '[:upper:]') |
45 |
|
thcatman := $(shell echo '$(catman)' | tr '[:lower:]' '[:upper:]') |
46 |
|
thmanpath := $(shell echo '$(manpath)' | tr '[:lower:]' '[:upper:]') |
47 |
|
thzsoelim := $(shell echo '$(zsoelim)' | tr '[:lower:]' '[:upper:]') |
48 |
|
|
49 |
# looks like a nice place to define a `canned' command sequence. |
# looks like a nice place to define a `canned' command sequence. |
50 |
define process_manpage |
define process_manpage |
51 |
sed -e 's,%pager%,$(pager),g' \ |
sed -e 's,%pager%,$(pager),g' \ |
59 |
-e 's,%catman%,$(catman),g' \ |
-e 's,%catman%,$(catman),g' \ |
60 |
-e 's,%apropos%,$(apropos),g' \ |
-e 's,%apropos%,$(apropos),g' \ |
61 |
-e 's,%whatis%,$(whatis),g' \ |
-e 's,%whatis%,$(whatis),g' \ |
62 |
|
-e 's,%thzsoelim%,$(thzsoelim),g' \ |
63 |
|
-e 's,%thman%,$(thman),g' \ |
64 |
|
-e 's,%thmandb%,$(thmandb),g' \ |
65 |
|
-e 's,%thmanpath%,$(thmanpath),g' \ |
66 |
|
-e 's,%thcatman%,$(thcatman),g' \ |
67 |
|
-e 's,%thapropos%,$(thapropos),g' \ |
68 |
|
-e 's,%thwhatis%,$(thwhatis),g' \ |
69 |
-e 's,%manpath_config_file%,$(config_file),g' \ |
-e 's,%manpath_config_file%,$(config_file),g' \ |
70 |
$< > $@ |
$< > $@ |
71 |
endef |
endef |