1 info_TEXINFOS = grub.texi multiboot.texi
2 grub_TEXINFOS = internals.texi
3 EXAMPLES = boot.S kernel.c multiboot.h
4 multiboot_TEXINFOS = boot.S.texi kernel.c.texi multiboot.h.texi
5 man_MANS = grub.8 mbchk.1 grub-install.8 grub-md5-crypt.8 grub-terminfo.8
8 noinst_SCRIPTS = $(HELP2MAN) $(SRC2TEXI)
9 EXTRA_PROGRAMS = kernel
11 # The example kernel is built if you specify --enable-example-kernel.
12 if BUILD_EXAMPLE_KERNEL
13 noinst_PROGRAMS = kernel
14 kernel_SOURCES = $(EXAMPLES)
15 kernel_CFLAGS = -fno-builtin -nostdinc -O -g -Wall \
16 -imacros $(top_builddir)/config.h
17 kernel_LDFLAGS = -nostdlib -Wl,-N -Wl,-Ttext -Wl,100000
22 EXTRA_DIST = menu.lst $(man_MANS) $(noinst_SCRIPTS) \
23 $(EXAMPLES) $(multiboot_TEXINFOS)
24 CLEANFILES = $(noinst_PROGRAMS)
26 # Cancel the rule %.texi -> %. This rule may confuse make to determine
30 %.c.texi: %.c $(srcdir)/$(SRC2TEXI)
31 $(SHELL) $(srcdir)/$(SRC2TEXI) $(srcdir) $< $@
33 %.h.texi: %.h $(srcdir)/$(SRC2TEXI)
34 $(SHELL) $(srcdir)/$(SRC2TEXI) $(srcdir) $< $@
36 %.S.texi: %.S $(srcdir)/$(SRC2TEXI)
37 $(SHELL) $(srcdir)/$(SRC2TEXI) $(srcdir) $< $@
40 $(srcdir)/grub.8: ../grub/grub $(srcdir)/$(HELP2MAN)
41 $(PERL) $(srcdir)/$(HELP2MAN) --name="the grub shell" \
42 --section=8 --output=$@ $<
44 $(srcdir)/grub-install.8: ../util/grub-install $(srcdir)/$(HELP2MAN)
46 $(PERL) $(srcdir)/$(HELP2MAN) --name="install GRUB on your drive" \
47 --section=8 --output=$@ $<
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=$@ $<
54 $(srcdir)/grub-md5-crypt.8: ../util/grub-md5-crypt $(srcdir)/$(HELP2MAN)
56 $(PERL) $(srcdir)/$(HELP2MAN) \
57 --name="Encrypt a password in MD5 format" \
58 --section=8 --output=$@ $<
60 $(srcdir)/grub-terminfo.8: ../util/grub-terminfo $(srcdir)/$(HELP2MAN)
62 $(PERL) $(srcdir)/$(HELP2MAN) \
63 --name="Generate a terminfo command from a terminfo name" \
64 --section=8 --output=$@ $<