Makefile
branchcthulhu_19e
changeset 2 585ff7c47904
parent 1 9b9ab4d82243
child 3 e3b572aa3a23
equal deleted inserted replaced
1:9b9ab4d82243 2:585ff7c47904
     8 SRCS=cthulhu_19e.xml
     8 SRCS=cthulhu_19e.xml
     9 FOP=fop
     9 FOP=fop
    10 NWALSH_XSL_DIR=/usr/share/sgml/docbook/stylesheet/xsl/nwalsh
    10 NWALSH_XSL_DIR=/usr/share/sgml/docbook/stylesheet/xsl/nwalsh
    11 OUTPUT=$(foreach target,$(basename $(SRCS)),$(call output,$(target)))
    11 OUTPUT=$(foreach target,$(basename $(SRCS)),$(call output,$(target)))
    12 UPLOAD=$(OUTPUT)
    12 UPLOAD=$(OUTPUT)
       
    13 xml_validate=xmllint --xinclude $(1) |			\
       
    14 	sed -e 's/\(xmlns:xi\|xml:base\)="[^"]*"//g' |	\
       
    15 	xmllint --valid --noout - 2>&1 | sed 's/^-:/$(1):/'
       
    16 html_validate=true
    13 
    17 
    14 all: $(basename $(SRCS))
    18 all: $(basename $(SRCS))
    15 
    19 
    16 validate: $(addsuffix -validate,$(SRCS))
    20 validate: $(addsuffix -validate,$(SRCS))
    17 
    21 
    18 $(addsuffix -validate,$(SRCS)):
    22 $(addsuffix -validate,$(SRCS)):
    19 	xmllint --xinclude --postvalid --noout $(subst -validate,,$@)
    23 	$(call xml_validate,$(subst -validate,,$@))
    20 
    24 
    21 cthulhu_19e: $(call targets,cthulhu_19e)
    25 cthulhu_19e: $(call targets,cthulhu_19e)
    22 
    26 
    23 # title.xsl: title.xml
    27 # title.xsl: title.xml
    24 #	xsltproc -o $@ $(NWALSH_XSL_DIR)/template/titlepage.xsl $<
    28 #	xsltproc -o $@ $(NWALSH_XSL_DIR)/template/titlepage.xsl $<