xref: /illumos-gate/usr/src/boot/forth/Makefile (revision 689b9301078f0c35c7f198fcee8032a0d30eff3a)
1#
2# This file and its contents are supplied under the terms of the
3# Common Development and Distribution License ("CDDL"), version 1.0.
4# You may only use this file in accordance with the terms of version
5# 1.0 of the CDDL.
6#
7# A full copy of the text of the CDDL should have accompanied this
8# source.  A copy of the CDDL is also available via the Internet at
9# http://www.illumos.org/license/CDDL.
10#
11
12#
13# Copyright 2022 Toomas Soome <tsoome@me.com>
14#
15include $(SRC)/Makefile.master
16
17ROOT_BOOT=		$(ROOT)/boot
18ROOT_BOOT_DEFAULTS=	$(ROOT)/boot/defaults
19ROOT_BOOT_FORTH=	$(ROOT)/boot/forth
20ROOT_BOOT_CONF=		$(ROOT)/boot/conf.d
21ROOTBOOTFILES=$(FILES:%=$(ROOT_BOOT)/%)
22ROOTBOOTFORTH=$(FORTH:%=$(ROOT_BOOT_FORTH)/%)
23ROOTBOOTDEFAULTS=$(DEFFILES:%=$(ROOT_BOOT_DEFAULTS)/%)
24FILEMODE=0444
25
26FORTH =	beastie.4th
27FORTH +=	beadm.4th
28FORTH +=	brand.4th
29FORTH +=	brand-illumos.4th
30FORTH +=	check-password.4th
31FORTH +=	color.4th
32FORTH +=	delay.4th
33FORTH +=	efi.4th
34FORTH +=	frames.4th
35FORTH +=	loader.4th
36DEFFILES =	loader.conf
37FORTH +=	logo-beastie.4th
38FORTH +=	logo-beastiebw.4th
39FORTH +=	logo-fbsdbw.4th
40FORTH +=	logo-illumos.4th
41FORTH +=	logo-orb.4th
42FORTH +=	logo-orbbw.4th
43FORTH +=	menu.4th
44FORTH +=	menu.rc
45FORTH +=	menu-commands.4th
46FORTH +=	menusets.4th
47FORTH +=	pcibios.4th
48FORTH +=	screen.4th
49FORTH +=	shortcuts.4th
50FORTH +=	support.4th
51FORTH +=	version.4th
52FILES +=	illumos-logo.png
53FILES +=	illumos-brand.png
54FILES +=	loader.rc
55
56all clean clobber:
57
58install: $(ROOT_BOOT_DEFAULTS) $(ROOT_BOOT_FORTH) $(ROOTBOOTFILES) \
59	$(ROOTBOOTDEFAULTS) $(ROOT_BOOT_CONF) $(ROOTBOOTFORTH)
60
61$(ROOT_BOOT)/%: % $(ROOT_BOOT)
62	$(INS.file)
63
64$(ROOT_BOOT_DEFAULTS)/%: % $(ROOT_BOOT_DEFAULTS)
65	$(INS.file)
66
67$(ROOT_BOOT_FORTH)/%: % $(ROOT_BOOT_FORTH)
68	$(INS.file)
69
70$(ROOT_BOOT_DEFAULTS) $(ROOT_BOOT_CONF) $(ROOT_BOOT_FORTH):
71	$(INS.dir)
72