summaryrefslogtreecommitdiffstats
path: root/man/Makefile.am
blob: a210e1bd4ad38660b7bfc834ca7d7657de5fc974 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# sbuild Makefile template
#
#
# Copyright © 2004-2008  Roger Leigh <rleigh@debian.org>
#
# sbuild is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# sbuild is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see
# <http://www.gnu.org/licenses/>.
#
#####################################################################

include $(top_srcdir)/scripts/global.mk

man_MANS =				\
	buildd.1			\
	buildd.conf.5			\
	buildd-mail.1			\
	buildd-uploader.1		\
	buildd-vlog.1			\
	buildd-watcher.1		\
	sbuild.1			\
	sbuild.conf.5			\
	sbuild-abort.1			\
	sbuild-adduser.8		\
	sbuild-apt.1			\
	sbuild-checkpackages.1		\
	sbuild-createchroot.8		\
	sbuild-debian-developer-setup.1 \
	sbuild-destroychroot.8		\
	sbuild-hold.1			\
	sbuild-qemu.1			\
	sbuild-qemu-boot.1		\
	sbuild-qemu-create.1		\
	sbuild-qemu-update.1		\
	sbuild-setup.7			\
	sbuild-shell.1			\
	sbuild-update.1

sbuild.conf.man: $(abs_top_srcdir)/tools/sbuild-dumpconfig $(abs_top_srcdir)/lib/Sbuild/Conf.pm $(abs_top_srcdir)/lib/Sbuild/ConfBase.pm
	PERL5LIB=$(abs_top_srcdir)/lib:$(abs_top_builddir)/lib \
	  $< sbuild man > $@

buildd.conf.man: $(abs_top_srcdir)/tools/sbuild-dumpconfig $(abs_top_srcdir)/lib/Buildd/Conf.pm
	PERL5LIB=$(abs_top_srcdir)/lib:$(abs_top_builddir)/lib \
	  $< buildd man > $@

sbuild.conf.5: sbuild.conf.5.in defs.man sbuild.conf.man
	soelim $< > $@

buildd.conf.5: buildd.conf.5.in defs.man buildd.conf.man
	soelim $< > $@

%.1: %.1.in defs.man
	soelim $< > $@

%.5: %.5.in defs.man
	soelim $< > $@

%.7: %.7.in defs.man
	soelim $< > $@

%.8: %.8.in defs.man
	soelim $< > $@

CLEANFILES = 				\
	sbuild.conf.man			\
	buildd.conf.man

EXTRA_DIST =				\
	defs.man.in			\
	$(addsuffix .in, $(man_MANS))	\
	sbuild-debuild.1.in

install-data-hook:
	ln -sf sbuild-hold.1 $(DESTDIR)$(man1dir)/sbuild-unhold.1
	ln -sf sbuild-update.1 $(DESTDIR)$(man1dir)/sbuild-upgrade.1
	ln -sf sbuild-update.1 $(DESTDIR)$(man1dir)/sbuild-distupgrade.1
	ln -sf sbuild-update.1 $(DESTDIR)$(man1dir)/sbuild-clean.1
	ln -sf buildd-mail.1 $(DESTDIR)$(man1dir)/buildd-mail-wrapper.1
	ln -sf sbuild-abort.1 $(DESTDIR)$(man1dir)/buildd-abort.1
	ln -sf sbuild-update.1 $(DESTDIR)$(man1dir)/buildd-update-chroots.1
	ln -sf sbuild-createchroot.8 $(DESTDIR)$(man8dir)/buildd-make-chroot.8

uninstall-hook:
	$(RM) $(DESTDIR)$(man1dir)/sbuild-unhold.1
	$(RM) $(DESTDIR)$(man1dir)/sbuild-upgrade.1
	$(RM) $(DESTDIR)$(man1dir)/sbuild-distupgrade.1
	$(RM) $(DESTDIR)$(man1dir)/sbuild-clean.1
	$(RM) $(DESTDIR)$(man1dir)/buildd-mail-wrapper.1
	$(RM) $(DESTDIR)$(man1dir)/buildd-abort.1
	$(RM) $(DESTDIR)$(man1dir)/buildd-update-chroots.1
	$(RM) $(DESTDIR)$(man8dir)/buildd-make-chroot.8