]> git.draconx.ca Git - cdecl99.git/commitdiff
Fix VPATH builds from git.
authorNick Bowler <nbowler@draconx.ca>
Sat, 25 Jun 2011 00:26:25 +0000 (20:26 -0400)
committerNick Bowler <nbowler@draconx.ca>
Sat, 25 Jun 2011 00:26:25 +0000 (20:26 -0400)
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.

Makefile.am

index 80657e216e5b1ed75d3bf41cec77e68c2ed24936..87635f605e24aeb99dfc91eca0ee3b586da6f62c 100644 (file)
@@ -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