xref: /titanic_41/usr/src/grub/grub-0.97/docs/Makefile.solaris (revision e4f5a11d4a234623168c1558fcdf4341e11769e1)
1#
2# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
3# Use is subject to license terms.
4#
5# ident	"%Z%%M%	%I%	%E% SMI"
6#
7include ../../Makefile.grub
8include ../Makefile.solaris.defs
9
10
11# Install these only if the OPTION_DOCS option is on (blank).
12$(OPTION_DOCS)MAN1_FILES	= mbchk.1
13
14$(OPTION_DOCS)MAN8_FILES	= grub-install.8	\
15				  grub-md5-crypt.8	\
16				  grub-terminfo.8	\
17				  grub.8
18
19$(OPTION_DOCS)INFO_FILES	= grub.info		\
20				  grub.info-1		\
21				  grub.info-2		\
22				  grub.info-3		\
23				  grub.info-4		\
24				  multiboot.info
25
26
27INSTALL_MAN1_DIR = $(ROOT_PLAT_GRUB)/man/man1
28INSTALL_MAN8_DIR = $(ROOT_PLAT_GRUB)/man/man8
29INSTALL_INFO_DIR = $(ROOT_PLAT_GRUB)/info
30
31INSTALL_TARGETS	= $(MAN1_FILES:%=$(INSTALL_MAN1_DIR)/%) \
32		  $(MAN8_FILES:%=$(INSTALL_MAN8_DIR)/%) \
33		  $(INFO_FILES:%=$(INSTALL_INFO_DIR)/%)
34
35#
36# Source files to be installed in $(SRC_DIR).
37#
38SRC_DIR		= $(ROOT_SRC)/docs
39SRC_FILES	= Makefile.am Makefile.in boot.S boot.S.texi \
40		  grub-install.8 grub-md5-crypt.8 grub-terminfo.8 grub.8 \
41		  grub.info grub.info-1 grub.info-2 grub.info-3 grub.info-4 \
42		  grub.texi help2man internals.texi kernel.c kernel.c.texi \
43		  mbchk.1 mdate-sh menu.lst multiboot.h multiboot.h.texi \
44		  multiboot.info multiboot.texi src2texi stamp-vti \
45		  texinfo.tex version.texi
46
47INSTALL_TARGETS	+= $(SRC_FILES:%=$(SRC_DIR)/%)
48
49
50all clean clobber:
51
52
53install: all $(INSTALL_TARGETS)
54
55$(INSTALL_MAN1_DIR)/%: $(INSTALL_MAN1_DIR) %
56	$(INS.file)
57
58$(INSTALL_MAN8_DIR)/%: $(INSTALL_MAN8_DIR) %
59	$(INS.file)
60
61$(INSTALL_INFO_DIR)/%: $(INSTALL_INFO_DIR) %
62	$(INS.file)
63
64$(SRC_DIR)/%: $(SRC_DIR) %
65	$(INS.file)
66
67$(INSTALL_MAN1_DIR) $(INSTALL_MAN8_DIR) $(INSTALL_INFO_DIR) $(SRC_DIR):
68	$(INS.dir)
69