Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: make clean and lib/libasn1/asn1_compile/ and lib/libcom_err/compile_et/



> It looks like "make clean" doesn't recurse down into:
> 
>  lib/libasn1/asn1_compile/
> 
>  lib/libcom_err/compile_et/

Patch below. I don't know if this is the correct way, but now "make clean" 
works for me and then I can complete "./build.sh -U -O ./obj tools 
kernel=GENERIC".

Index: lib/libcom_err/Makefile
===================================================================
RCS file: /cvsroot/src/lib/libcom_err/Makefile,v
retrieving revision 1.13
diff -u -r1.13 Makefile
--- lib/libcom_err/Makefile     10 Jan 2005 03:11:17 -0000      1.13
+++ lib/libcom_err/Makefile     7 Mar 2008 14:51:22 -0000
@@ -20,10 +20,13 @@
                com_err.3 set_com_err_hook.3 \
                com_err.3 reset_com_err_hook.3 
 
+.if ${USETOOLS} != "yes" || make(clean) || make(cleandir) || make(distclean)
+SUBDIR=                compile_et
+.endif
+
 .if ${USETOOLS} != "yes"
 .PHONY:                compile_et
 includes:      compile_et
-SUBDIR=                compile_et
 
 compile_et:
        @cd ${.CURDIR}/compile_et && ${MAKE}
@@ -43,6 +46,6 @@
 .endif
 
 .include <bsd.lib.mk>
-.if ${USETOOLS} != "yes"
+.if ${USETOOLS} != "yes" || make(clean) || make(cleandir) || make(distclean)
 .include <bsd.subdir.mk>
 .endif
Index: lib/libasn1/Makefile
===================================================================
RCS file: /cvsroot/src/lib/libasn1/Makefile,v
retrieving revision 1.28
diff -u -r1.28 Makefile
--- lib/libasn1/Makefile        28 May 2007 12:06:18 -0000      1.28
+++ lib/libasn1/Makefile        7 Mar 2008 14:51:22 -0000
@@ -125,7 +125,7 @@
 
 CLEANFILES=    ${BUILT_SOURCES} ${gen_files} asn1_files krb5_asn1.h 
krb5_asn1.hx
 
-.if ${USETOOLS} != "yes"
+.if ${USETOOLS} != "yes" || make(clean) || make(cleandir) || make(distclean)
 SUBDIR=        asn1_compile
 .endif
 
@@ -134,7 +134,7 @@
 .endif
 
 .include <bsd.lib.mk>
-.if ${USETOOLS} != "yes"
+.if ${USETOOLS} != "yes" || make(clean) || make(cleandir) || make(distclean)
 .include <bsd.subdir.mk>
 .endif
 


Home | Main Index | Thread Index | Old Index