[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.73 and 1.74

version 1.73, 1997/05/07 08:42:21 version 1.74, 1997/05/07 15:53:34
Line 5 
Line 5 
 .include "${.CURDIR}/../Makefile.inc"  .include "${.CURDIR}/../Makefile.inc"
 .endif  .endif
   
 .MAIN:          all  
 .PHONY:         cleanprog proginstall  
   
 .include <bsd.own.mk>  .include <bsd.own.mk>
   
   .MAIN:          all
   .PHONY:         cleanprog proginstall scriptsinstall
   install:        proginstall scriptsinstall
   clean:          cleanprog
   
 .SUFFIXES: .out .o .c .cc .C .y .l .s .8 .7 .6 .5 .4 .3 .2 .1 .0  .SUFFIXES: .out .o .c .cc .C .y .l .s .8 .7 .6 .5 .4 .3 .2 .1 .0
   
 CFLAGS+=        ${COPTS}  CFLAGS+=        ${COPTS}
Line 104  MAN= ${PROG}.1
Line 106  MAN= ${PROG}.1
   
 all: ${PROG} _SUBDIRUSE  all: ${PROG} _SUBDIRUSE
   
 .if !target(clean)  
 cleanprog:  cleanprog:
         rm -f a.out [Ee]rrs mklog core *.core \          rm -f a.out [Ee]rrs mklog core *.core \
             ${PROG} ${OBJS} ${LOBJS} ${CLEANFILES}              ${PROG} ${OBJS} ${LOBJS} ${CLEANFILES}
   
 clean: _SUBDIRUSE cleanprog  
 cleandir: _SUBDIRUSE cleanprog  
 .else  
 cleandir: _SUBDIRUSE clean  
 .endif  
   
 .if defined(SRCS)  .if defined(SRCS)
 afterdepend: .depend  afterdepend: .depend
         @(TMP=/tmp/_depend$$$$; \          @(TMP=/tmp/_depend$$$$; \
Line 123  afterdepend: .depend
Line 118  afterdepend: .depend
             mv $$TMP .depend)              mv $$TMP .depend)
 .endif  .endif
   
 .if !target(install)  .if defined(PROG) && !target(proginstall)
 .if !target(beforeinstall)  
 beforeinstall:  
 .endif  
 .if !target(afterinstall)  
 afterinstall:  
 .endif  
   
 .if !target(realinstall)  
   
 .if defined(PROG)  
 PROGNAME?= ${PROG}  PROGNAME?= ${PROG}
 proginstall:: ${DESTDIR}${BINDIR}/${PROGNAME}  proginstall:: ${DESTDIR}${BINDIR}/${PROGNAME}
 .if !defined(UPDATE)  .if !defined(UPDATE)
Line 149  ${DESTDIR}${BINDIR}/${PROGNAME}: ${PROG}
Line 134  ${DESTDIR}${BINDIR}/${PROGNAME}: ${PROG}
             -m ${BINMODE} ${.ALLSRC} ${.TARGET}              -m ${BINMODE} ${.ALLSRC} ${.TARGET}
 .endif  .endif
   
 .if defined(SCRIPTS)  .if !target(proginstall)
   proginstall::
   .endif
   
   .if defined(SCRIPTS) && !target(scriptsinstall)
 SCRIPTSDIR?=${BINDIR}  SCRIPTSDIR?=${BINDIR}
 SCRIPTSOWN?=${BINOWN}  SCRIPTSOWN?=${BINOWN}
 SCRIPTSGRP?=${BINGRP}  SCRIPTSGRP?=${BINGRP}
Line 165  SCRIPTSNAME_${S} ?= ${SCRIPTSNAME}
Line 154  SCRIPTSNAME_${S} ?= ${SCRIPTSNAME}
 SCRIPTSNAME_${S} ?= ${S:T:R}  SCRIPTSNAME_${S} ?= ${S:T:R}
 .endif  .endif
 SCRIPTSDIR_${S} ?= ${SCRIPTSDIR}  SCRIPTSDIR_${S} ?= ${SCRIPTSDIR}
 proginstall:: ${DESTDIR}${SCRIPTSDIR_${S}}/${SCRIPTSNAME_${S}}  scriptsinstall:: ${DESTDIR}${SCRIPTSDIR_${S}}/${SCRIPTSNAME_${S}}
 .if !defined(UPDATE)  .if !defined(UPDATE)
 .PHONY: ${DESTDIR}${SCRIPTSDIR_${S}}/${SCRIPTSNAME_${S}}  .PHONY: ${DESTDIR}${SCRIPTSDIR_${S}}/${SCRIPTSNAME_${S}}
 .endif  .endif
Line 180  ${DESTDIR}${SCRIPTSDIR_${S}}/${SCRIPTSNA
Line 169  ${DESTDIR}${SCRIPTSDIR_${S}}/${SCRIPTSNA
 .endfor  .endfor
 .endif  .endif
   
 .if target(proginstall)  .if !target(scriptsinstall)
 realinstall: proginstall filesinstall  scriptsinstall::
 .else  
 realinstall: filesinstall  
 .endif  
 .endif  
   
 install: ${MANINSTALL} _SUBDIRUSE linksinstall  
   
 ${MANINSTALL}: afterinstall  
 afterinstall: realinstall  
 realinstall: beforeinstall  
 .endif  .endif
   
 .if !target(lint)  .if !target(lint)

Legend:
Removed from v.1.73  
changed lines
  Added in v.1.74

CVSweb <webmaster@jp.NetBSD.org>