On Sat, 24 Dec 2022 16:32:25 +0100 Daniel Wagner <dwagner@xxxxxxx> wrote: > During my packaging attempt I found out that the man pages are installed > into subdirs. So I started to look into the this and ... let's say it's > complicated. Oh, to make your life easier. That shouldn't happen. > > For example libtraceevent-func_apis.txt list a few function which are > also listed in libtraceevent-func_find.txt. The Makefile uses these > function as build names but, if we have two targets with the same name > one will overwrite the other. make seems to tolerate something like > this. Meson doesn't. That's actually a mistake :-/ The asciidoc complains whenever a man page has more than 9 functions described, so I have to break them up when I add more related APIs. I probably missed removing some of the old functions when I did that here. > > I am playing with various ideas how we could handle this. Currently, I > think the best way is to distinguish the different source txt files. So > we have files which are for generating a mans per function (1:n) > and we have txt files which are general documentation (1:1). The real fix is to remove the tep_find_function() and tep_find_function_address() from libtraceevent-func_apis.txt. -- Steve