Merge branch 'master' of git://github.com/illumos/illumos-gate
[unleashed.git] / usr / src / grub / grub-0.97 / Makefile.solaris
blobddf5cc95030991f1fcd3d7485be4105ba75ba475
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
10 .KEEP_STATE:
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.
19 SRC_DIR         = $(ROOT_SRC)
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)
34 all     := TARGET = all
35 install := TARGET = install
36 clean   := TARGET = clean
37 clobber := TARGET = clobber
40 all install clean clobber: $(SUBDIRS)
42 $(SUBDIRS): _FORCE
43         @cd $@; pwd; $(MAKE) -f Makefile.solaris $(TARGET)
46 install: $(INSTALL_TARGETS)
48 $(SRC_DIR)/%: $(SRC_DIR) %
49         $(INS.file)
51 $(SRC_DIR):
52         $(INS.dir)
55 _FORCE: