]> xenbits.xensource.com Git - libvirt.git/commitdiff
maint: remove syntax-check exception
authorEric Blake <eblake@redhat.com>
Wed, 22 Jun 2011 16:40:24 +0000 (10:40 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 22 Jun 2011 16:45:21 +0000 (10:45 -0600)
We weren't using the @FOO@ notation for a Makefile substitution,
but instead for a sed rule, so using [@]FOO@ instead avoids the
need to exempt this syntax check.

* cfg.mk (_makefile_at_at_check_exceptions): Delete.
* tools/Makefile.am (virt-xml-validate, virt-pki-validate): Avoid
tripping syntax-check.
Reported by Daniel P. Berrange.

cfg.mk
tools/Makefile.am

diff --git a/cfg.mk b/cfg.mk
index 5d3ef264c319b72cf49d5ebd48524de1b15dd3cf..c2230b8d2c4e5c182b5cb5e4a7736cf7780e5f9c 100644 (file)
--- a/cfg.mk
+++ b/cfg.mk
@@ -581,9 +581,6 @@ _autogen:
        $(srcdir)/autogen.sh
        ./config.status
 
-# Exempt @...@ uses of these symbols.
-_makefile_at_at_check_exceptions = ' && !/(SCHEMA|SYSCONF)DIR/'
-
 # regenerate HACKING as part of the syntax-check
 syntax-check: $(top_srcdir)/HACKING
 
index 826674a7755ea42d8681f7addd87a77a31f47cf9..909c4b2e6d108ec2d6c4d427fae30eafb4b141dc 100644 (file)
@@ -23,14 +23,14 @@ dist_man1_MANS = virt-xml-validate.1 virt-pki-validate.1 virsh.1
 
 
 virt-xml-validate: virt-xml-validate.in Makefile
-       $(AM_V_GEN)sed -e 's,@SCHEMADIR@,$(pkgdatadir)/schemas,' < $< > $@ \
+       $(AM_V_GEN)sed -e 's,[@]SCHEMADIR@,$(pkgdatadir)/schemas,' < $< > $@ \
            || (rm $@ && exit 1) && chmod +x $@
 
 virt-xml-validate.1: virt-xml-validate.in
        $(AM_V_GEN)$(POD2MAN) $< $(srcdir)/$@
 
 virt-pki-validate: virt-pki-validate.in Makefile
-       $(AM_V_GEN)sed -e 's,@SYSCONFDIR@,$(sysconfdir),' < $< > $@ \
+       $(AM_V_GEN)sed -e 's,[@]SYSCONFDIR@,$(sysconfdir),' < $< > $@ \
            || (rm $@ && exit 1) && chmod +x $@
 
 virt-pki-validate.1: virt-pki-validate.in