3 # This handles man pages in YODL format. We convert to the respective
4 # output in the source directory then copy over to the final dest. This
5 # means yodl is only needed if compiling from CVS
8 # $(SOURCE) - The documents to use, in the form foo.sect, ie apt-cache.8
9 # the yodl files are called apt-cache.8.yo
11 # See defaults.mak for information about LOCAL
13 # Some local definitions
16 LOCAL
:= yodl-manpage-
$(firstword $(SOURCE
))
17 $(LOCAL
)-LIST
:= $(SOURCE
)
19 # Install generation hooks
21 veryclean
: veryclean
/$(LOCAL
)
23 $($(LOCAL
)-LIST
) :: % : %.yo
24 echo Creating man page
$@
28 .PHONY
: veryclean
/$(LOCAL
)
34 # Strip from the source list any man pages we dont have compiled already
35 SOURCE
:= $(wildcard $(SOURCE
))
39 # Chain to the manpage rule
40 ifneq ($(words $(SOURCE
)),0)