0
|
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 |
include ../Makefile.grub
|
|
8 |
include Makefile.solaris.defs
|
|
9 |
|
|
10 |
.KEEP_STATE:
|
|
11 |
|
|
12 |
SUBDIRS = netboot stage2 stage1 lib grub util docs
|
|
13 |
|
|
14 |
#
|
|
15 |
# Source files to be installed in $(SRC_DIR).
|
|
16 |
# NOTE: although it's under SCCS, config.h is not included here because
|
|
17 |
# it's automatically generated when configure is run.
|
|
18 |
#
|
|
19 |
SRC_DIR = $(ROOT_SRC)
|
|
20 |
|
|
21 |
SRC_FILES = AUTHORS BUGS COPYING ChangeLog INSTALL MAINTENANCE \
|
|
22 |
Makefile.am Makefile.in NEWS README THANKS TODO \
|
|
23 |
acinclude.m4 aclocal.m4 config.h.in configure.ac stamp-h.in
|
|
24 |
INST_FILES = $(SRC_FILES:%=$(SRC_DIR)/%)
|
|
25 |
|
|
26 |
SRC_EXECS = compile config.guess config.sub configure depcomp \
|
|
27 |
install-sh missing mkinstalldirs
|
|
28 |
INST_EXECS = $(SRC_EXECS:%=$(SRC_DIR)/%)
|
|
29 |
$(INST_EXECS) := FILEMODE = 755
|
|
30 |
|
|
31 |
|
|
32 |
INSTALL_TARGETS = $(INST_FILES) $(INST_EXECS)
|
|
33 |
|
|
34 |
all := TARGET = all
|
|
35 |
install := TARGET = install
|
|
36 |
clean := TARGET = clean
|
|
37 |
clobber := TARGET = clobber
|
|
38 |
|
|
39 |
|
|
40 |
all install clean clobber: $(SUBDIRS)
|
|
41 |
|
|
42 |
$(SUBDIRS): _FORCE
|
|
43 |
@cd $@; pwd; $(MAKE) -f Makefile.solaris $(TARGET)
|
|
44 |
|
|
45 |
|
|
46 |
install: $(INSTALL_TARGETS)
|
|
47 |
|
|
48 |
$(SRC_DIR)/%: $(SRC_DIR) %
|
|
49 |
$(INS.file)
|
|
50 |
|
|
51 |
$(SRC_DIR):
|
|
52 |
$(INS.dir)
|
|
53 |
|
|
54 |
|
|
55 |
_FORCE:
|