xref: /titanic_52/usr/src/lib/fm/topo/maps/Makefile.map (revision b8fac8e162eda7e98db13dfa3e439e43f90f41d9)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21
22#
23# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# ident	"%Z%%M%	%I%	%E% SMI"
27
28.KEEP_STATE:
29.SUFFIXES: .xml
30
31MODCLASS = maps
32
33include ../../../Makefile.lib
34include ../../../../Makefile.lib
35
36DTDSRC = $(DTDFILE:%=../common/%)
37DTDTARG = $(DTDFILE:%=%)
38ROOTDTDTARG = $(DTDTARG:%=$(ROOT)/usr/share/lib/xml/dtd/%)
39
40common_ROOTTOPOROOT = $(ROOT)/usr/lib/fm/topo/$(MODCLASS)
41arch_ROOTTOPOROOT = $(ROOT)/usr/platform/$(ARCH)/lib/fm/topo/$(MODCLASS)
42platform_ROOTTOPOROOT = \
43	$(PLATFORMS:%=$(ROOT)/usr/platform/%/lib/fm/topo/$(MODCLASS))
44ROOTTOPOROOT = $($(CLASS)_ROOTTOPOROOT)
45ROOTTOPOMAPS = $(TOPOFILE:%=$(ROOTTOPOROOT)/%)
46
47install:= FILEMODE =	0444
48
49.xml:
50	$(RM) $@
51	$(CAT) $< > $@
52
53include ../../Makefile.rootdirs
54
55all: $(TOPOFILE)
56
57clean:
58	$(RM) $(ROOTTOPOMAPS)
59
60clobber: clean
61
62check: $(CHECKHDRS)
63
64install_h lint _msg:
65
66$($(CLASS)_ROOTTOPOROOT)/%: %
67	$(INS.file)
68
69$(ROOTDTDTARG): $$(@D)
70	$(RM) $@; $(INS) -s -m 0444 -f $(@D) $(DTDSRC)
71
72install: all $(ROOTDTDTARG) $(ROOTTOPOROOT) $(ROOTTOPOMAPS)
73
74