Debian Codegraph @

debian/examples.d/Makefile

raw
1 SRCS := $(wildcard *.sgml)
2 NSGMLS := $(shell if command -v onsgmls 2>/dev/null; then \
3 : ;\
4 elif command -v nsgmls 2>/dev/null; then \
5 : ;\
6 else \
7 echo "false" ;\
8 echo "warning: no nsgmls found" >&2 ;\
9 fi)
10
11 NSGMLSARGS=
12
13 .PHONY: validate
14 validate: $(addsuffix .nsgmls,$(SRCS))
15
16 %.nsgmls : %
17 $(NSGMLS) -E1 -wall $(NSGMLSARGS) -gues $<
18
19 .PHONY: clean
20 clean:
21 rm -f *.html *~
22