[apparmor] [patch] make top-level parser files depend on regex lib header

Steve Beattie steve at nxnw.org
Fri Nov 12 19:47:13 GMT 2010


This minor patch updates the compilation dependencies for bits of the
parser that interact with the regex DFA generation library, and thus
need to be recompiled when the header file changes.

(This patch isn't particularly of interest to distros, as they typically
won't be doing incremental compilation.)

---
 parser/Makefile |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Index: b/parser/Makefile
===================================================================
--- a/parser/Makefile
+++ b/parser/Makefile
@@ -163,10 +163,10 @@ parser_misc.o: parser_misc.c parser.h pa
 parser_yacc.o: parser_yacc.c parser_yacc.h
 	$(CC) $(EXTRA_CFLAGS) -c -o $@ $<
 
-parser_main.o: parser_main.c parser.h parser_version.h
+parser_main.o: parser_main.c parser.h parser_version.h libapparmor_re/apparmor_re.h
 	$(CC) $(EXTRA_CFLAGS) -c -o $@ $<
 
-parser_interface.o: parser_interface.c parser.h
+parser_interface.o: parser_interface.c parser.h libapparmor_re/apparmor_re.h
 	$(CC) $(EXTRA_CFLAGS) -c -o $@ $<
 
 parser_include.o: parser_include.c parser.h parser_include.h
@@ -175,7 +175,7 @@ parser_include.o: parser_include.c parse
 parser_merge.o: parser_merge.c parser.h
 	$(CC) $(EXTRA_CFLAGS) -c -o $@ $<
 
-parser_regex.o: parser_regex.c parser.h
+parser_regex.o: parser_regex.c parser.h libapparmor_re/apparmor_re.h
 	$(CC) $(EXTRA_CFLAGS) -c -o $@ $<
 
 parser_symtab.o: parser_symtab.c parser.h

-- 
Steve Beattie
<sbeattie at ubuntu.com>
http://NxNW.org/~steve/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
Url : https://lists.ubuntu.com/archives/apparmor/attachments/20101112/cdcb5be8/attachment.pgp 


More information about the AppArmor mailing list