Debian Codegraph @

doc/Makefile

raw
1 all: manpages
2 ./graph.pl `find .. -name \*.pm` > hierarchy.txt
3
4 pod2man=pod2man -c Debconf -r '' --utf8
5 manpages:
6 cd man && po4a po4a/po4a.cfg
7 for pod in man/*.pod; do \
8 perl -pi -e '/^=encoding/ and $$seen = 1; if (not $$seen and /^=head1/) { print "=encoding UTF-8\n\n"; $$seen = 1; }' $$pod; \
9 done
10 install -d man/gen
11 for num in 1 3 8; do \
12 find man -maxdepth 1 -type f -name "*.$$num.pod" -printf '%P\n' | \
13 xargs -i sh -c "cd man ; $(pod2man) --section=$$num {} > gen/\`basename {} .pod\`"; \
14 done
15 $(pod2man) --section=3 ../Debconf/Client/ConfModule.pm \
16 > man/gen/Debconf::Client::ConfModule.3pm
17 find .. -maxdepth 1 -perm /100 -type f \( -name debconf -or -name 'debconf-*' \) -printf '%P\n' | \
18 xargs -i sh -c "cd .. ; $(pod2man) --section=1 {} > doc/man/gen/{}.1"
19 find .. -maxdepth 1 -perm /100 -type f -name 'dpkg-*' -printf '%P\n' | \
20 xargs -i sh -c "cd .. ; $(pod2man) --section=8 {} > doc/man/gen/{}.8"
21
22 clean:
23 cd man && po4a --rm-translations po4a/po4a.cfg
24 rm -f man/po4a/po/*~
25 rm -f hierarchy.txt
26 rm -rf man/gen