[BACK]Return to bsd.prog.mk CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / share / mk

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/share/mk/bsd.prog.mk between version 1.23 and 1.24

version 1.23, 1993/08/10 16:46:58 version 1.24, 1993/08/15 19:26:10
Line 11 
Line 11 
   
 CFLAGS+=${COPTS}  CFLAGS+=${COPTS}
   
 STRIP?= -s  STRIP?=         -s
   
 BINGRP?=        bin  BINGRP?=        bin
 BINOWN?=        bin  BINOWN?=        bin
Line 144  depend: .depend _PROGSUBDIR
Line 144  depend: .depend _PROGSUBDIR
 .if !target(beforeinstall)  .if !target(beforeinstall)
 beforeinstall:  beforeinstall:
 .if defined(DESTDIR) || defined(BINDIR)  .if defined(DESTDIR) || defined(BINDIR)
         @if [ ! -d "${DESTDIR}${BINDIR}" ]; then \          @install -d -o root -g wheel -m 755 ${DESTDIR}${BINDIR}
                 /bin/rm -f ${DESTDIR}${BINDIR} ; \  
                 mkdir -p ${DESTDIR}${BINDIR} ; \  
                 chown root.wheel ${DESTDIR}${BINDIR} ; \  
                 chmod 755 ${DESTDIR}${BINDIR} ; \  
         else \  
                 true ; \  
         fi  
 .endif  .endif
 .endif  .endif
 .if !target(afterinstall)  .if !target(afterinstall)
Line 196  lint: ${SRCS} _PROGSUBDIR
Line 189  lint: ${SRCS} _PROGSUBDIR
 .endif  .endif
 .endif  .endif
   
 .if !target(obj)  
 .if defined(NOOBJ)  
 obj: _PROGSUBDIR  
 .else  
 obj: _PROGSUBDIR  
         @cd ${.CURDIR}; rm -f obj > /dev/null 2>&1 || true; \  
         here=`pwd`; subdir=`echo $$here | sed 's,^/usr/src/,,'`; \  
         if test $$here != $$subdir ; then \  
                 dest=/usr/obj/$$subdir ; \  
                 echo "$$here -> $$dest"; ln -s $$dest obj; \  
                 if test -d /usr/obj -a ! -d $$dest; then \  
                         mkdir -p $$dest; \  
                 else \  
                         true; \  
                 fi; \  
         else \  
                 true ; \  
                 dest=$$here/obj ; \  
                 if test ! -d obj ; then \  
                         echo "making $$dest" ; \  
                         mkdir $$dest; \  
                 fi ; \  
         fi;  
 .endif  
 .endif  
   
 .if !target(tags)  .if !target(tags)
 tags: ${SRCS} _PROGSUBDIR  tags: ${SRCS} _PROGSUBDIR
 .if defined(PROG)  .if defined(PROG)
Line 233  tags: ${SRCS} _PROGSUBDIR
Line 200  tags: ${SRCS} _PROGSUBDIR
 .if !defined(NOMAN)  .if !defined(NOMAN)
 .include <bsd.man.mk>  .include <bsd.man.mk>
 .endif  .endif
   
   .include <bsd.obj.mk>
   obj: _PROGSUBDIR

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24

CVSweb <webmaster@jp.NetBSD.org>