17c478bd9Sstevel@tonic-gate#
27c478bd9Sstevel@tonic-gate# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
37c478bd9Sstevel@tonic-gate# Use is subject to license terms.
47c478bd9Sstevel@tonic-gate#
57c478bd9Sstevel@tonic-gate# ident	"%Z%%M%	%I%	%E% SMI"
67c478bd9Sstevel@tonic-gate#
77c478bd9Sstevel@tonic-gateinclude ../../Makefile.grub
87c478bd9Sstevel@tonic-gateinclude ../Makefile.solaris.defs
97c478bd9Sstevel@tonic-gate
107c478bd9Sstevel@tonic-gate
117c478bd9Sstevel@tonic-gate# Install these only if the OPTION_DOCS option is on (blank).
127c478bd9Sstevel@tonic-gate$(OPTION_DOCS)MAN1_FILES	= mbchk.1
137c478bd9Sstevel@tonic-gate
147c478bd9Sstevel@tonic-gate$(OPTION_DOCS)MAN8_FILES	= grub-install.8	\
157c478bd9Sstevel@tonic-gate				  grub-md5-crypt.8	\
167c478bd9Sstevel@tonic-gate				  grub-terminfo.8	\
177c478bd9Sstevel@tonic-gate				  grub.8
187c478bd9Sstevel@tonic-gate
197c478bd9Sstevel@tonic-gate$(OPTION_DOCS)INFO_FILES	= grub.info		\
207c478bd9Sstevel@tonic-gate				  grub.info-1		\
217c478bd9Sstevel@tonic-gate				  grub.info-2		\
227c478bd9Sstevel@tonic-gate				  grub.info-3		\
237c478bd9Sstevel@tonic-gate				  grub.info-4		\
247c478bd9Sstevel@tonic-gate				  multiboot.info
257c478bd9Sstevel@tonic-gate
267c478bd9Sstevel@tonic-gate
277c478bd9Sstevel@tonic-gateINSTALL_MAN1_DIR = $(ROOT_PLAT_GRUB)/man/man1
287c478bd9Sstevel@tonic-gateINSTALL_MAN8_DIR = $(ROOT_PLAT_GRUB)/man/man8
297c478bd9Sstevel@tonic-gateINSTALL_INFO_DIR = $(ROOT_PLAT_GRUB)/info
307c478bd9Sstevel@tonic-gate
317c478bd9Sstevel@tonic-gateINSTALL_TARGETS	= $(MAN1_FILES:%=$(INSTALL_MAN1_DIR)/%) \
327c478bd9Sstevel@tonic-gate		  $(MAN8_FILES:%=$(INSTALL_MAN8_DIR)/%) \
337c478bd9Sstevel@tonic-gate		  $(INFO_FILES:%=$(INSTALL_INFO_DIR)/%)
347c478bd9Sstevel@tonic-gate
357c478bd9Sstevel@tonic-gate#
367c478bd9Sstevel@tonic-gate# Source files to be installed in $(SRC_DIR).
377c478bd9Sstevel@tonic-gate#
387c478bd9Sstevel@tonic-gateSRC_DIR		= $(ROOT_SRC)/docs
397c478bd9Sstevel@tonic-gateSRC_FILES	= Makefile.am Makefile.in boot.S boot.S.texi \
407c478bd9Sstevel@tonic-gate		  grub-install.8 grub-md5-crypt.8 grub-terminfo.8 grub.8 \
417c478bd9Sstevel@tonic-gate		  grub.info grub.info-1 grub.info-2 grub.info-3 grub.info-4 \
427c478bd9Sstevel@tonic-gate		  grub.texi help2man internals.texi kernel.c kernel.c.texi \
437c478bd9Sstevel@tonic-gate		  mbchk.1 mdate-sh menu.lst multiboot.h multiboot.h.texi \
447c478bd9Sstevel@tonic-gate		  multiboot.info multiboot.texi src2texi stamp-vti \
457c478bd9Sstevel@tonic-gate		  texinfo.tex version.texi
467c478bd9Sstevel@tonic-gate
477c478bd9Sstevel@tonic-gateINSTALL_TARGETS	+= $(SRC_FILES:%=$(SRC_DIR)/%)
487c478bd9Sstevel@tonic-gate
497c478bd9Sstevel@tonic-gate
50c6fe1048Sjongkisall clean clobber:
517c478bd9Sstevel@tonic-gate
527c478bd9Sstevel@tonic-gate
537c478bd9Sstevel@tonic-gateinstall: all $(INSTALL_TARGETS)
547c478bd9Sstevel@tonic-gate
557c478bd9Sstevel@tonic-gate$(INSTALL_MAN1_DIR)/%: $(INSTALL_MAN1_DIR) %
567c478bd9Sstevel@tonic-gate	$(INS.file)
577c478bd9Sstevel@tonic-gate
587c478bd9Sstevel@tonic-gate$(INSTALL_MAN8_DIR)/%: $(INSTALL_MAN8_DIR) %
597c478bd9Sstevel@tonic-gate	$(INS.file)
607c478bd9Sstevel@tonic-gate
617c478bd9Sstevel@tonic-gate$(INSTALL_INFO_DIR)/%: $(INSTALL_INFO_DIR) %
627c478bd9Sstevel@tonic-gate	$(INS.file)
637c478bd9Sstevel@tonic-gate
647c478bd9Sstevel@tonic-gate$(SRC_DIR)/%: $(SRC_DIR) %
657c478bd9Sstevel@tonic-gate	$(INS.file)
667c478bd9Sstevel@tonic-gate
677c478bd9Sstevel@tonic-gate$(INSTALL_MAN1_DIR) $(INSTALL_MAN8_DIR) $(INSTALL_INFO_DIR) $(SRC_DIR):
687c478bd9Sstevel@tonic-gate	$(INS.dir)
69