~ubuntu-branches/ubuntu/maverick/sgml-data/maverick

« back to all changes in this revision

Viewing changes to examples/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Adam Di Carlo
  • Date: 2005-04-21 11:48:10 UTC
  • Revision ID: james.westby@ubuntu.com-20050421114810-u7e0kdky1f12hzpj
Tags: 2.0.3
* remove symlinks build dependency from debian/control and rules;
  set urgency because this is a serious violation; closes: #301788
* update HTML ISO 15445; closes: #248675

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
SRCS    := $(wildcard *.html *.sgml *.xml)
 
3
NSGMLS  := $(shell if command -v onsgmls 2>/dev/null; then       \
 
4
                        :                                       ;\
 
5
                   elif command -v nsgmls 2>/dev/null; then      \
 
6
                        :                                       ;\
 
7
                   else                                          \
 
8
                        echo "false"                            ;\
 
9
                        echo "warning: no nsgmls found" 1>&2    ;\
 
10
                   fi)
 
11
 
 
12
.PHONY: validate
 
13
validate:       $(addsuffix .validate,$(SRCS))
 
14
 
 
15
%.xml.validate : %.xml
 
16
        xmllint --noout --valid --nonet $<
 
17
 
 
18
%.xml.validate.nsgmls : %.xml
 
19
        SP_CHARSET_FIXED=YES SP_ENCODING=XML $(NSGMLS) -wxml -wall -gues /usr/share/xml/declaration/xml.dcl $<
 
20
 
 
21
%.xml.validate.rxp : %.xml
 
22
        rxp -sNVV $<
 
23
 
 
24
%.validate : %
 
25
        $(NSGMLS) -wall -gues $<
 
26
 
 
27
clean:
 
28
        rm -f /tmp/debian-man-ref.ent