2 # Copyright 2005 Sun Microsystems, Inc. All rights reserved.
3 # Use is subject to license terms.
5 # ident "%Z%%M% %I% %E% SMI"
7 include ../Makefile.grub
8 include Makefile.solaris.defs
12 SUBDIRS = netboot stage2 stage1 lib grub util docs
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.
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)/%)
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
32 INSTALL_TARGETS = $(INST_FILES) $(INST_EXECS)
35 install := TARGET = install
36 clean := TARGET = clean
37 clobber := TARGET = clobber
40 all install clean clobber: $(SUBDIRS)
43 @cd $@; pwd; $(MAKE) -f Makefile.solaris $(TARGET)
46 install: $(INSTALL_TARGETS)
48 $(SRC_DIR)/%: $(SRC_DIR) %