Debian Codegraph @

debian/examples/Makefile

raw
1
2 SRCS := $(wildcard *.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" >&2 ;\
10 fi)
11
12 NSGMLSARGS := -m/usr/share/sgml/declaration/xml.soc
13
14 # settings for XML files
15 export SP_CHARSET_FIXED = YES
16 export SP_ENCODING = XML
17
18 .PHONY: validate
19 validate: $(addsuffix .nsgmls,$(SRCS)) $(addsuffix .xmllint,$(SRCS))
20
21 %.xmllint : %
22 xmllint --nonet --noout --valid $<
23
24 %.nsgmls : %
25 $(NSGMLS) -E1 -wxml -wall $(NSGMLSARGS) -gues $<
26
27 .PHONY: clean
28 clean:
29 rm -f *.html *~