| 1 |
# Copyright (c) 2013 The Khronos Group Inc. |
| 2 |
# |
| 3 |
# Permission is hereby granted, free of charge, to any person obtaining a |
| 4 |
# copy of this software and/or associated documentation files (the |
| 5 |
# "Materials"), to deal in the Materials without restriction, including |
| 6 |
# without limitation the rights to use, copy, modify, merge, publish, |
| 7 |
# distribute, sublicense, and/or sell copies of the Materials, and to |
| 8 |
# permit persons to whom the Materials are furnished to do so, subject to |
| 9 |
# the following conditions: |
| 10 |
# |
| 11 |
# The above copyright notice and this permission notice shall be included |
| 12 |
# in all copies or substantial portions of the Materials. |
| 13 |
# |
| 14 |
# THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 15 |
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
| 16 |
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
| 17 |
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY |
| 18 |
# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, |
| 19 |
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE |
| 20 |
# MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. |
| 21 |
|
| 22 |
LDIRT := $(wildcard gl*.xml) |
| 23 |
|
| 24 |
COMMONPREF = standard |
| 25 |
include $(ROOT)/usr/include/make/commondefs |
| 26 |
|
| 27 |
SUBDIRS = \ |
| 28 |
html \ |
| 29 |
$(NULL) |
| 30 |
|
| 31 |
default $(ALLTARGS): $(_FORCE) |
| 32 |
$(SUBDIRS_MAKERULE) |
| 33 |
|
| 34 |
distoss: |
| 35 |
$(MAKE) $(COMMONPREF)$@ |
| 36 |
$(SUBDIRS_MAKERULE) |
| 37 |
|
| 38 |
include $(COMMONRULES) |
| 39 |
|
| 40 |
XIFILES = baseformattable.xml \ |
| 41 |
compressedformattable.xml \ |
| 42 |
internalformattable.xml \ |
| 43 |
texboformattable.xml \ |
| 44 |
apifunchead.xml \ |
| 45 |
apiversion.xml \ |
| 46 |
funchead.xml \ |
| 47 |
varhead.xml \ |
| 48 |
version.xml |
| 49 |
|
| 50 |
# Docbook 5 Relax-NG with XInclude schema URLs and local filenames |
| 51 |
DB5XIRNCURL = http://docbook.org/xml/5.0/rng/docbookxi.rnc |
| 52 |
DB5XIRNC = /usr/share/xml/docbook/schema/rng/5.0/docbookxi.rnc |
| 53 |
|
| 54 |
XML = $(filter-out $(XIFILES),$(wildcard *.xml)) |
| 55 |
validate: |
| 56 |
jing -c $(DB5XIRNC) $(XML) |