Added more include directories to fix building in another directory.
[mmh] / sbr / Makefile.in
index 6bda370..64ecb9e 100644 (file)
@@ -17,7 +17,9 @@ etcdir      = @sysconfdir@
 CC       = @CC@
 CFLAGS   = @CFLAGS@
 DEFS     = @DEFS@
-INCLUDES = -I$(top_srcdir) @CPPFLAGS@
+# add include dir . for sigmsg.h and .. for config.h when building
+# in different directory
+INCLUDES = -I$(top_srcdir) -I. -I.. @CPPFLAGS@
 
 LEX    = @LEX@
 AWK    = @AWK@
@@ -93,7 +95,7 @@ lint: sigmsg.h
 # Also, not all makes accept $< in non-pattern rules,
 # hence the explicit filenames here.
 dtimep.c: dtimep.lex
-       $(LEX) -n -t $(srcdir)/dtimep.lex > dtimep.c
+       $(LEX) -n -t $(srcdir)/dtimep.lex > $@
 
 pidstatus.o: sigmsg.h