tech-pkg archive

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

distclean-depends



Just something to mirror 'clean-depends'. Useful? (I think it is, but
what do you think?)

-Martin
Index: mk/fetch/distclean.mk
===================================================================
RCS file: /cvsroot/pkgsrc/mk/fetch/distclean.mk,v
retrieving revision 1.5
diff -u -r1.5 distclean.mk
--- mk/fetch/distclean.mk       16 Dec 2007 02:51:24 -0000      1.5
+++ mk/fetch/distclean.mk       18 Jun 2009 20:45:07 -0000
@@ -24,3 +24,14 @@
 .  endif
        ${RUN} ${RM} -f README.html
 .endif
+
+.PHONY:        distclean-depends
+.if !target(distclean-depends)
+distclean-depends:
+       ${RUN}                                                          \
+       ${_DEPENDS_WALK_CMD} ${PKGPATH} |                               \
+       while read dir; do                                              \
+               cd ${.CURDIR}/../../$$dir &&                            \
+               ${RECURSIVE_MAKE} ${MAKEFLAGS} distclean;               \
+       done
+.endif


Home | Main Index | Thread Index | Old Index