Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Mar 2012 23:57:50 +0000 (UTC)
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r232676 - head/usr.sbin/acpi/iasl
Message-ID:  <201203072357.q27NvoDJ016184@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jkim
Date: Wed Mar  7 23:57:49 2012
New Revision: 232676
URL: http://svn.freebsd.org/changeset/base/232676

Log:
  Make parallel build more safer.
  
  Reviewed by:	tijl

Modified:
  head/usr.sbin/acpi/iasl/Makefile

Modified: head/usr.sbin/acpi/iasl/Makefile
==============================================================================
--- head/usr.sbin/acpi/iasl/Makefile	Wed Mar  7 22:39:11 2012	(r232675)
+++ head/usr.sbin/acpi/iasl/Makefile	Wed Mar  7 23:57:49 2012	(r232676)
@@ -75,19 +75,21 @@ CLEANFILES= aslcompiler.y.h aslcompilerl
 aslcompilerlex.c: aslcompiler.l
 	${LEX} ${LFLAGS} -PAslCompiler -o${.TARGET} ${.ALLSRC}
 
-aslcompilerparse.c: aslcompiler.y
-	${YACC} ${YFLAGS} -pAslCompiler -o${.TARGET} ${.ALLSRC}
+.ORDER: aslcompilerparse.c aslcompilerparse.h
+aslcompilerparse.c aslcompilerparse.h: aslcompiler.y
+	${YACC} ${YFLAGS} -pAslCompiler -oaslcompilerparse.c ${.ALLSRC}
 
-aslcompiler.y.h: aslcompilerparse.c
-	mv -f aslcompilerparse.h ${.TARGET}
+aslcompiler.y.h: aslcompilerparse.h
+	ln -f ${.ALLSRC} ${.TARGET}
 
 dtparserlex.c: dtparser.l
 	${LEX} ${LFLAGS} -PDtParser -o${.TARGET} ${.ALLSRC}
 
-dtparserparse.c: dtparser.y
-	${YACC} ${YFLAGS} -pDtParser -o${.TARGET} ${.ALLSRC}
+.ORDER: dtparserparse.c dtparserparse.h
+dtparserparse.c dtparserparse.h: dtparser.y
+	${YACC} ${YFLAGS} -pDtParser -odtparserparse.c ${.ALLSRC}
 
-dtparser.y.h: dtparserparse.c
-	mv -f dtparserparse.h ${.TARGET}
+dtparser.y.h: dtparserparse.h
+	ln -f ${.ALLSRC} ${.TARGET}
 
 .include <bsd.prog.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201203072357.q27NvoDJ016184>