xref: /titanic_52/usr/src/grub/Makefile (revision a1b5e537933659371285214eae1db2603e6364b4)
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#
7.KEEP_STATE:
8
9include ../Makefile.master
10include Makefile.grub
11
12all	:= TARGET = all
13install	:= TARGET = install
14clean	:= TARGET = clean
15clobber	:= TARGET = clobber
16
17GRUB	= grub-0.95
18
19SUBDIRS	= $(GRUB)
20
21SPLASH_IMAGE = splash.xpm.gz
22GRUB_MENU = menu.lst
23INSTALL_MENU = install_menu
24
25INST_TARGETS = $(ROOT_BOOT_GRUB)/$(SPLASH_IMAGE)
26INST_TARGETS += $(ROOT_BOOT_GRUB)/$(GRUB_MENU)
27INST_TARGETS += $(ROOT_BOOT_GRUB)/$(INSTALL_MENU)
28
29all: $(SUBDIRS)
30
31install: $(SUBDIRS) $(INST_TARGETS)
32
33
34# Makefiles in the GRUB source tree are named "Makefile.solaris".
35$(GRUB): FRC
36	cd $@; pwd; $(MAKE) -f Makefile.solaris $(TARGET)
37
38$(ROOT_BOOT_GRUB)/%: $(ROOT_BOOT_GRUB) %
39	$(INS.file)
40
41$(ROOT_BOOT_GRUB):
42	$(INS.dir)
43
44
45clean clobber: $(SUBDIRS)
46
47FRC:
48