2N/A# The contents of this file are subject to the terms of the
2N/A# Common Development and Distribution License (the "License").
2N/A# You may not use this file except in compliance with the License.
2N/A# See the License for the specific language governing permissions
2N/A# and limitations under the License.
2N/A# When distributing Covered Code, include this CDDL HEADER in each
2N/A# If applicable, add the following below this CDDL HEADER, with the
2N/A# fields enclosed by brackets "[]" replaced with your own identifying
2N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2N/A# Copyright (c) 2006, 2011, Oracle
and/or its affiliates. All rights reserved.
2N/A.SUFFIXES: .xml .xmlgen $(SUFFIXES)
2N/ADTDSRC = $(DTDFILE:%=../common/%)
2N/ADTDTARG = $(DTDFILE:%=%)
2N/Aplatform_ROOTTOPOROOT = \
2N/AROOTTOPOROOT = $($(CLASS)_ROOTTOPOROOT)
2N/AROOTTOPOMAPS = $(TOPOFILE:%=$(ROOTTOPOROOT)/%) $(BAYMAPFILE:%=$(ROOTTOPOROOT)/%)
2N/Ainstall:= FILEMODE = 0444
2N/A# The .xmlgen perl file automatically generates a new xml file. This is done
2N/A# to avoid having to deal with things like 48 platform specific internal
2N/A# storage bays by hand.
2N/A%.xml: ../common/%.xml
2N/Aall: $(TOPOFILE) $(BAYMAPFILE)
2N/A $(RM) $(ROOTTOPOMAPS)
2N/A $(RM) $(TEMPTOPOFILE)
2N/Alint: $(TOPOFILE:%=%.chk)
2N/A @xmllint --dropdtd $< | \
2N/A xmllint --noout --dtdvalid $(DTDSRC) -
2N/A$($(CLASS)_ROOTTOPOROOT)/%: %
2N/A$(ROOTDTDTARG): $$(@D)
2N/A $(RM) $@; $(INS) -s -m 0444 -f $(@D) $(DTDSRC)
2N/Ainstall: all $(ROOTDTDTARG) $(ROOTTOPOROOT) $(ROOTTOPOMAPS)