xref: /titanic_41/usr/src/grub/grub-0.97/Makefile.solaris (revision 269552cd714f2f1e308fdde0fc69b18a7f1142b2)
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#
7include ../Makefile.grub
8include Makefile.solaris.defs
9
10.KEEP_STATE:
11
12SUBDIRS		= 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#
19SRC_DIR		= $(ROOT_SRC)
20
21SRC_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
24INST_FILES	= $(SRC_FILES:%=$(SRC_DIR)/%)
25
26SRC_EXECS	= compile config.guess config.sub configure depcomp \
27		  install-sh missing mkinstalldirs
28INST_EXECS	= $(SRC_EXECS:%=$(SRC_DIR)/%)
29$(INST_EXECS)	:= FILEMODE = 755
30
31
32INSTALL_TARGETS	= $(INST_FILES) $(INST_EXECS)
33
34all	:= TARGET = all
35install	:= TARGET = install
36clean	:= TARGET = clean
37clobber	:= TARGET = clobber
38
39
40all install clean clobber: $(SUBDIRS)
41
42$(SUBDIRS): _FORCE
43	@cd $@; pwd; $(MAKE) -f Makefile.solaris $(TARGET)
44
45
46install: $(INSTALL_TARGETS)
47
48$(SRC_DIR)/%: $(SRC_DIR) %
49	$(INS.file)
50
51$(SRC_DIR):
52	$(INS.dir)
53
54
55_FORCE:
56