Debian Codegraph @

man/Makefile.am

raw
1 ## Process this file with automake to produce Makefile.in
2
3 ## Copyright (C) 2010 Colin Watson.
4 ##
5 ## This file is part of binfmt-support.
6 ##
7 ## binfmt-support is free software; you can redistribute it and/or modify it
8 ## under the terms of the GNU General Public License as published by the
9 ## Free Software Foundation; either version 3 of the License, or (at your
10 ## option) any later version.
11 ##
12 ## binfmt-support is distributed in the hope that it will be useful, but
13 ## WITHOUT ANY WARRANTY; without even the implied warranty of
14 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
15 ## Public License for more details.
16 ##
17 ## You should have received a copy of the GNU General Public License along
18 ## with binfmt-support; if not, write to the Free Software Foundation, Inc.,
19 ## 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20
21 man8_MANS = update-binfmts.8
22 CLEANFILES = $(man8_MANS)
23
24 .man8.8:
25 sed -e 's,%admindir%,$(admindir),g; s,%importdir%,$(importdir),g' \
26 $< > $@
27
28 dist-hook:
29 set -e; \
30 dist_files=`for file in $(man8_MANS); do \
31 echo $$file | sed 's/\.\([0-9]\)/\.man\1/'; \
32 done`; \
33 for file in $$dist_files; do \
34 test -f $(distdir)/$$file \
35 || cp -p $(srcdir)/$$file $(distdir)/$$file; \
36 done