/usr/share/doc/docbook/examples/Makefile is in docbook 4.5-6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | SRCS := $(wildcard *.sgml)
NSGMLS := $(shell if command -v onsgmls 2>/dev/null; then \
: ;\
elif command -v nsgmls 2>/dev/null; then \
: ;\
else \
echo "false" ;\
echo "warning: no nsgmls found" >&2 ;\
fi)
NSGMLSARGS=
.PHONY: validate
validate: $(addsuffix .nsgmls,$(SRCS))
%.nsgmls : %
$(NSGMLS) -E1 -wall $(NSGMLSARGS) -gues $<
.PHONY: clean
clean:
rm -f *.html *~
|