Fixed building in different build directory, as described in INSTALL.
[mmh] / sbr / Makefile.in
index 6bda370..9539c0f 100644 (file)
@@ -17,7 +17,8 @@ etcdir      = @sysconfdir@
 CC       = @CC@
 CFLAGS   = @CFLAGS@
 DEFS     = @DEFS@
-INCLUDES = -I$(top_srcdir) @CPPFLAGS@
+# add include dir . for sigmsg.h when building in different directory
+INCLUDES = -I$(top_srcdir) -I. @CPPFLAGS@
 
 LEX    = @LEX@
 AWK    = @AWK@
@@ -93,7 +94,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