I've found that kadmin(8) fails to build with make -j > 1. The problem is
that many of the source files depend on kadmin-commands.h which is
generated as part of the build. However that dependency is not explicitly
identified within the make file.

The diff below does the trick for me, but looks a bit nasty. Hopefully
someone can suggest a better way to resolve this.

Nathanael

Index: Makefile
===================================================================
RCS file: /cvs/src/kerberosV/usr.sbin/kadmin/Makefile,v
retrieving revision 1.18
diff -u -p -r1.18 Makefile
--- Makefile 13 Oct 2010 08:14:22 -0000 1.18
+++ Makefile 15 Dec 2012 12:31:18 -0000
@@ -38,7 +38,7 @@ slc: slc-gram.o slc-lex.o ${PRINTVER}

 SLC= slc

-kadmin: kadmin-commands.h
+${SRCS:N*.h:N*.sh:R:S/$/.o/} kadmin: kadmin-commands.h
 kadmin-commands.c kadmin-commands.h: kadmin-commands.in $(SLC)
  ./$(SLC) $(KRB5SRC)/kadmin/kadmin-commands.in
 CFLAGS+=-I${KRB5SRC}/lib/krb5 -I${KRB5SRC}/lib/kadm5 -I.

Reply via email to