640 number_to_scaled_string is duplicated in several commands
[unleashed.git] / usr / src / grub / Makefile
blob28c2eca2ff765843d200e3565bb1e2467a07dee9
2 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
3 # Use is subject to license terms.
5 # ident "%Z%%M% %I% %E% SMI"
7 .KEEP_STATE:
9 include ../Makefile.master
10 include Makefile.grub
12 all := TARGET = all
13 install := TARGET = install
14 clean := TARGET = clean
15 clobber := TARGET = clobber
17 GRUB = grub-0.97
19 SUBDIRS = $(GRUB)
21 SPLASH_IMAGE = splash.xpm.gz
22 GRUB_MENU = menu.lst
23 GRUB_DEFAULT = default
24 INSTALL_MENU = install_menu
25 CAPABILITY = capability
27 INST_TARGETS = $(ROOT_BOOT_GRUB)/$(SPLASH_IMAGE)
28 INST_TARGETS += $(ROOT_BOOT_GRUB)/$(GRUB_MENU)
29 INST_TARGETS += $(ROOT_BOOT_GRUB)/$(INSTALL_MENU)
30 INST_TARGETS += $(ROOT_BOOT_GRUB)/$(GRUB_DEFAULT)
31 INST_TARGETS += $(ROOT_BOOT_GRUB)/$(CAPABILITY)
33 $(ROOT_BOOT_GRUB)/$(GRUB_DEFAULT) := FILEMODE = 444
34 $(ROOT_BOOT_GRUB)/$(CAPABILITY) := FILEMODE = 444
36 all: $(SUBDIRS)
38 install: $(SUBDIRS) $(INST_TARGETS)
41 # Makefiles in the GRUB source tree are named "Makefile.solaris".
42 $(GRUB): FRC
43 cd $@; pwd; $(MAKE) -f Makefile.solaris $(TARGET)
45 $(ROOT_BOOT_GRUB)/%: $(ROOT_BOOT_GRUB) %
46 $(INS.file)
48 $(ROOT_BOOT_GRUB):
49 $(INS.dir)
52 clean clobber: $(SUBDIRS)
54 FRC: