home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / share / doc / sgml-data / examples / Makefile < prev    next >
Encoding:
Makefile  |  2004-02-14  |  644 b   |  29 lines

  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
  29.