xref: /titanic_44/usr/src/grub/grub-0.97/docs/Makefile.am (revision 1b8adde7ba7d5e04395c141c5400dc2cffd7d809)
1info_TEXINFOS = grub.texi multiboot.texi
2grub_TEXINFOS = internals.texi
3EXAMPLES = boot.S kernel.c multiboot.h
4multiboot_TEXINFOS = boot.S.texi kernel.c.texi multiboot.h.texi
5man_MANS = grub.8 mbchk.1 grub-install.8 grub-md5-crypt.8 grub-terminfo.8
6HELP2MAN = help2man
7SRC2TEXI = src2texi
8noinst_SCRIPTS = $(HELP2MAN) $(SRC2TEXI)
9EXTRA_PROGRAMS = kernel
10
11# The example kernel is built if you specify --enable-example-kernel.
12if BUILD_EXAMPLE_KERNEL
13noinst_PROGRAMS = kernel
14kernel_SOURCES = $(EXAMPLES)
15kernel_CFLAGS = -fno-builtin -nostdinc -O -g -Wall \
16	-imacros $(top_builddir)/config.h
17kernel_LDFLAGS = -nostdlib -Wl,-N -Wl,-Ttext -Wl,100000
18
19boot.o: multiboot.h
20endif
21
22EXTRA_DIST = menu.lst $(man_MANS) $(noinst_SCRIPTS) \
23	$(EXAMPLES) $(multiboot_TEXINFOS)
24CLEANFILES = $(noinst_PROGRAMS)
25
26# Cancel the rule %.texi -> %. This rule may confuse make to determine
27# the dependecies.
28.texi:
29
30%.c.texi: %.c $(srcdir)/$(SRC2TEXI)
31	$(SHELL) $(srcdir)/$(SRC2TEXI) $(srcdir) $< $@
32
33%.h.texi: %.h $(srcdir)/$(SRC2TEXI)
34	$(SHELL) $(srcdir)/$(SRC2TEXI) $(srcdir) $< $@
35
36%.S.texi: %.S $(srcdir)/$(SRC2TEXI)
37	$(SHELL) $(srcdir)/$(SRC2TEXI) $(srcdir) $< $@
38
39if MAINTAINER_MODE
40$(srcdir)/grub.8: ../grub/grub $(srcdir)/$(HELP2MAN)
41	$(PERL) $(srcdir)/$(HELP2MAN) --name="the grub shell" \
42		--section=8 --output=$@ $<
43
44$(srcdir)/grub-install.8: ../util/grub-install $(srcdir)/$(HELP2MAN)
45	chmod 755 $<
46	$(PERL) $(srcdir)/$(HELP2MAN) --name="install GRUB on your drive" \
47		--section=8 --output=$@ $<
48
49$(srcdir)/mbchk.1: ../util/mbchk $(srcdir)/$(HELP2MAN)
50	$(PERL) $(srcdir)/$(HELP2MAN) \
51		--name="check the format of a Multiboot kernel" \
52		--section=1 --output=$@ $<
53
54$(srcdir)/grub-md5-crypt.8: ../util/grub-md5-crypt $(srcdir)/$(HELP2MAN)
55	chmod 755 $<
56	$(PERL) $(srcdir)/$(HELP2MAN) \
57		--name="Encrypt a password in MD5 format" \
58		--section=8 --output=$@ $<
59
60$(srcdir)/grub-terminfo.8: ../util/grub-terminfo $(srcdir)/$(HELP2MAN)
61	chmod 755 $<
62	$(PERL) $(srcdir)/$(HELP2MAN) \
63		--name="Generate a terminfo command from a terminfo name" \
64		--section=8 --output=$@ $<
65endif
66