/usr/share/doc/docbook-simple/examples/Makefile is in docbook-simple 1.1-4.2.
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 22 23 24 25 26 27 28 | SRCS := $(wildcard *.xml)
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 := -m/usr/share/sgml/declaration/xml.soc
# settings for XML files
export SP_CHARSET_FIXED = YES
export SP_ENCODING = XML
.PHONY: validate
validate: $(addsuffix .nsgmls,$(SRCS)) $(addsuffix .xmllint,$(SRCS))
%.xmllint : %
xmllint --nonet --noout --valid $<
%.nsgmls : %
$(NSGMLS) -E1 -wxml -wall $(NSGMLSARGS) -gues $<
.PHONY: clean
clean:
rm -f *.html *~
|