Subject: misc/3302: Allow mkdep to be changed
To: None <gnats-bugs@gnats.netbsd.org>
From: Simon J. Gerraty <sjg@quick.com.au>
List: netbsd-bugs
Date: 03/08/1997 09:15:12
>Number:         3302
>Category:       misc
>Synopsis:       bsd.dep.mk would be more portable if mkdep could be replaced
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people (Misc Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Mar  7 14:20:04 1997
>Last-Modified:
>Originator:     Simon J. Gerraty
>Organization:
Zen Programming...
>Release:        Feb22
>Environment:
	
System: NetBSD zen.quick.com.au 1.2C NetBSD 1.2C (ZEN) #5: Mon Mar 3 16:18:58 EST 1997 root@zen.quick.com.au:/share/usr.src/sys/arch/i386/compile/ZEN i386


>Description:
	
I use these macros on systems other than NetBSD, this patch allows
bsd.dep.mk to use the available makedepend tool.

>How-To-Repeat:
	
>Fix:
	
*** bsd.dep.mk.~1~      Sat Oct 14 11:34:39 1995
--- bsd.dep.mk  Sat Mar  8 08:58:59 1997
***************
*** 1,5 ****
--- 1,6 ----
  #     $NetBSD: bsd.dep.mk,v 1.12 1995/09/27 01:15:09 christos Exp $
  
+ _MKDEP?=mkdep
  # some of the rules involve .h sources, so remove them from mkdep line
  .if !target(depend)
  depend: beforedepend .depend _SUBDIRUSE afterdepend
***************
*** 8,25 ****
        @rm -f .depend
        @files="${.ALLSRC:M*.s} ${.ALLSRC:M*.S}"; \
        if [ "$$files" != " " ]; then \
!         echo mkdep -a ${MKDEP} ${CFLAGS:M-[ID]*} ${CPPFLAGS} ${AINC} $$files;\
!         mkdep -a ${MKDEP} ${CFLAGS:M-[ID]*} ${CPPFLAGS} ${AINC} $$files; \
        fi
        @files="${.ALLSRC:M*.c}"; \
        if [ "$$files" != "" ]; then \
!         echo mkdep -a ${MKDEP} ${CFLAGS:M-[ID]*} ${CPPFLAGS} $$files; \
!         mkdep -a ${MKDEP} ${CFLAGS:M-[ID]*} ${CPPFLAGS} $$files; \
        fi
        @files="${.ALLSRC:M*.cc} ${.ALLSRC:M*.C} ${.ALLSRC:M*.cxx}"; \
        if [ "$$files" != "  " ]; then \
!         echo mkdep -a ${MKDEP} ${CXXFLAGS:M-[ID]*} ${CPPFLAGS} $$files; \
!         mkdep -a ${MKDEP} ${CXXFLAGS:M-[ID]*} ${CPPFLAGS} $$files; \
        fi
  .else
  .depend:
--- 9,26 ----
        @rm -f .depend
        @files="${.ALLSRC:M*.s} ${.ALLSRC:M*.S}"; \
        if [ "$$files" != " " ]; then \
!         echo ${_MKDEP} -a ${MKDEP} ${CFLAGS:M-[ID]*} ${CPPFLAGS} ${AINC} $$files;\
!         ${_MKDEP} -a ${MKDEP} ${CFLAGS:M-[ID]*} ${CPPFLAGS} ${AINC} $$files; \
        fi
        @files="${.ALLSRC:M*.c}"; \
        if [ "$$files" != "" ]; then \
!         echo ${_MKDEP} -a ${MKDEP} ${CFLAGS:M-[ID]*} ${CPPFLAGS} $$files; \
!         ${_MKDEP} -a ${MKDEP} ${CFLAGS:M-[ID]*} ${CPPFLAGS} $$files; \
        fi
        @files="${.ALLSRC:M*.cc} ${.ALLSRC:M*.C} ${.ALLSRC:M*.cxx}"; \
        if [ "$$files" != "  " ]; then \
!         echo ${_MKDEP} -a ${MKDEP} ${CXXFLAGS:M-[ID]*} ${CPPFLAGS} $$files; \
!         ${_MKDEP} -a ${MKDEP} ${CXXFLAGS:M-[ID]*} ${CPPFLAGS} $$files; \
        fi
  .else
  .depend:
>Audit-Trail:
>Unformatted: