From: Nick Bowler Date: Sat, 25 Jun 2011 00:26:25 +0000 (-0400) Subject: Fix VPATH builds from git. X-Git-Tag: v1~165 X-Git-Url: https://git.draconx.ca/gitweb/cdecl99.git/commitdiff_plain/c82ec7af7cb9f910a3b4f73521d17a443d650f0f Fix VPATH builds from git. In such builds, C source files (that are normally distributed) get generated, which means they end up in the build tree. Building them subsequently fails because headers (in the source tree) are not found. --- diff --git a/Makefile.am b/Makefile.am index 80657e2..87635f6 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,7 +1,8 @@ ACLOCAL_AMFLAGS = -I m4 SUBDIRS = lib . -CPPFLAGS = -I$(top_builddir)/src -I$(top_builddir)/lib -I$(top_srcdir)/lib +CPPFLAGS = -I$(top_builddir)/src -I$(top_srcdir)/src \ + -I$(top_builddir)/lib -I$(top_srcdir)/lib MAINTAINERCLEANFILES = src/scan.c src/scan.h src/scan.stamp \ src/parse.c src/parse.h src/parse.stamp