summaryrefslogtreecommitdiff
path: root/usr/src/grub/Makefile
blob: 28c2eca2ff765843d200e3565bb1e2467a07dee9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#
# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# ident	"%Z%%M%	%I%	%E% SMI"
#
.KEEP_STATE:

include ../Makefile.master
include Makefile.grub

all	:= TARGET = all
install	:= TARGET = install
clean	:= TARGET = clean
clobber	:= TARGET = clobber

GRUB	= grub-0.97

SUBDIRS	= $(GRUB)

SPLASH_IMAGE = splash.xpm.gz
GRUB_MENU = menu.lst
GRUB_DEFAULT = default
INSTALL_MENU = install_menu
CAPABILITY = capability

INST_TARGETS = $(ROOT_BOOT_GRUB)/$(SPLASH_IMAGE)
INST_TARGETS += $(ROOT_BOOT_GRUB)/$(GRUB_MENU)
INST_TARGETS += $(ROOT_BOOT_GRUB)/$(INSTALL_MENU)
INST_TARGETS += $(ROOT_BOOT_GRUB)/$(GRUB_DEFAULT)
INST_TARGETS += $(ROOT_BOOT_GRUB)/$(CAPABILITY)

$(ROOT_BOOT_GRUB)/$(GRUB_DEFAULT)   := FILEMODE = 444
$(ROOT_BOOT_GRUB)/$(CAPABILITY)   := FILEMODE = 444

all: $(SUBDIRS)

install: $(SUBDIRS) $(INST_TARGETS)


# Makefiles in the GRUB source tree are named "Makefile.solaris".
$(GRUB): FRC
	cd $@; pwd; $(MAKE) -f Makefile.solaris $(TARGET)

$(ROOT_BOOT_GRUB)/%: $(ROOT_BOOT_GRUB) %
	$(INS.file)

$(ROOT_BOOT_GRUB):
	$(INS.dir)


clean clobber: $(SUBDIRS)

FRC: