fixes for srcdir != biulddir
authorFrank Mori Hess <fmhess@speakeasy.net>
Sat, 19 Jun 2004 15:25:30 +0000 (15:25 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Sat, 19 Jun 2004 15:25:30 +0000 (15:25 +0000)
lib/Makefile.am

index 5ff09c63f84a14359f5fc450622530769f1cf27f..0d5202a3a74db537c1f73d9e608b7ac4a502471a 100644 (file)
@@ -17,9 +17,9 @@ libcomedi_la_SOURCES = \
 libcomedi_la_CFLAGS = $(COMEDILIB_CFLAGS) -D_REENTRANT -DLOCALSTATEDIR=\"\$(localstatedir)\"
 libcomedi_la_LDFLAGS = -release $(VERSION) -Wl,--version-script=$(srcdir)/version_script
 
-calib_yacc.c + calib_yacc.h: $(srcdir)/calib_yacc.y
-       $(YACC) -d -p calib_yy -o calib_yacc.c $<
+$(srcdir)/calib_yacc.c + $(srcdir)/calib_yacc.h: $(srcdir)/calib_yacc.y
+       $(YACC) -d -p calib_yy -o $(srcdir)/calib_yacc.c $<
 
-calib_lex.c: $(srcdir)/calib_lex.l
+$(srcdir)/calib_lex.c: $(srcdir)/calib_lex.l
        $(LEX) -Pcalib_yy -o$@ $<