Makefile: Warn if policy.xml xmllint check does not run.
Signed-off-by: Chris PeBenito <pebenito@ieee.org>
This commit is contained in:
parent
ecfaae80de
commit
9ee2a6d42e
|
@ -49,6 +49,7 @@ addons:
|
||||||
- libbz2-dev
|
- libbz2-dev
|
||||||
- libpcre3-dev
|
- libpcre3-dev
|
||||||
- swig
|
- swig
|
||||||
|
- libxml2-utils
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- lsb_release -a
|
- lsb_release -a
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -442,6 +442,8 @@ $(polxml): $(layerxml) $(tunxml) $(boolxml)
|
||||||
$(verbose) echo '</policy>' >> $@
|
$(verbose) echo '</policy>' >> $@
|
||||||
$(verbose) if test -x $(XMLLINT) && test -f $(xmldtd); then \
|
$(verbose) if test -x $(XMLLINT) && test -f $(xmldtd); then \
|
||||||
$(XMLLINT) --noout --path $(dir $(xmldtd)) --dtdvalid $(xmldtd) $@ ;\
|
$(XMLLINT) --noout --path $(dir $(xmldtd)) --dtdvalid $(xmldtd) $@ ;\
|
||||||
|
else \
|
||||||
|
echo "$@ XML validation not run. Please install the xmllint tool." ;\
|
||||||
fi
|
fi
|
||||||
|
|
||||||
xml: $(polxml)
|
xml: $(polxml)
|
||||||
|
|
Loading…
Reference in New Issue