From a732a94df3b79d1a1e291faf28572b472b9e4541 Mon Sep 17 00:00:00 2001 From: Daniel P. Berrange Date: Sep 14 2012 17:00:27 +0000 Subject: Use a more specific regex to fix enum include paths Simply doing a search replace on $(srcdir) doesn't work very well in non-VPATH builds. Use a more specific regex that won't generate false matches --- diff --git a/src/Makefile.am b/src/Makefile.am index 91aa71e..a62a8c0 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -30,7 +30,7 @@ BUILT_SOURCES = \ $(BUILT_SOURCES): %: %.etemplate $(ENUMS_FILES) $(AM_V_GEN)$(GLIB_MKENUMS) --template $^ | \ sed -e 's/VIRT_TYPE_VIEWER/VIRT_VIEWER_TYPE/' \ - -e 's,$(srcdir)/,,' > $@ + -e 's,#include "$(srcdir)/,#include ",' > $@ COMMON_SOURCES = \ $(BUILT_SOURCES) \