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