[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.71 and 1.75

version 1.71, 1997/05/06 20:54:40 version 1.75, 1997/05/07 17:06:28
Line 5 
Line 5 
 .include "${.CURDIR}/../Makefile.inc"  .include "${.CURDIR}/../Makefile.inc"
 .endif  .endif
   
 .MAIN:          all  
 .PHONY:         cleanprog afterdepend beforeinstall proginstall afterinstall  
   
 .include <bsd.own.mk>  .include <bsd.own.mk>
   
   .MAIN:          all
   .PHONY:         cleanprog proginstall scriptsinstall
   install:        proginstall scriptsinstall
   clean cleandir: 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 102  MAN= ${PROG}.1
Line 104  MAN= ${PROG}.1
 .endif  # !defined(MAN)  .endif  # !defined(MAN)
 .endif  # defined(PROG)  .endif  # defined(PROG)
   
 all: ${PROG} _SUBDIRUSE  all: ${PROG}
   
 .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 143  proginstall:: ${DESTDIR}${BINDIR}/${PROG
Line 128  proginstall:: ${DESTDIR}${BINDIR}/${PROG
 ${DESTDIR}${BINDIR}/${PROGNAME}: .MADE  ${DESTDIR}${BINDIR}/${PROGNAME}: .MADE
 .endif  .endif
   
   .PRECIOUS: ${DESTDIR}${BINDIR}/${PROGNAME}
 ${DESTDIR}${BINDIR}/${PROGNAME}: ${PROG}  ${DESTDIR}${BINDIR}/${PROGNAME}: ${PROG}
         ${INSTALL} ${COPY} ${STRIPFLAG} -o ${BINOWN} -g ${BINGRP} \          ${INSTALL} ${COPY} ${STRIPFLAG} -o ${BINOWN} -g ${BINGRP} \
             -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 164  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 172  proginstall:: ${DESTDIR}${SCRIPTSDIR_${S
Line 162  proginstall:: ${DESTDIR}${SCRIPTSDIR_${S
 ${DESTDIR}${SCRIPTSDIR_${S}}/${SCRIPTSNAME_${S}}: .MADE  ${DESTDIR}${SCRIPTSDIR_${S}}/${SCRIPTSNAME_${S}}: .MADE
 .endif  .endif
   
   .PRECIOUS: ${DESTDIR}${SCRIPTSDIR_${S}}/${SCRIPTSNAME_${S}}
 ${DESTDIR}${SCRIPTSDIR_${S}}/${SCRIPTSNAME_${S}}: ${S}  ${DESTDIR}${SCRIPTSDIR_${S}}/${SCRIPTSNAME_${S}}: ${S}
         ${INSTALL} ${COPY} -o ${SCRIPTSOWN_${S}} -g ${SCRIPTSGRP_${S}} \          ${INSTALL} ${COPY} -o ${SCRIPTSOWN_${S}} -g ${SCRIPTSGRP_${S}} \
                 -m ${SCRIPTSMODE_${S}} ${.ALLSRC} ${.TARGET}                  -m ${SCRIPTSMODE_${S}} ${.ALLSRC} ${.TARGET}
 .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.71  
changed lines
  Added in v.1.75

CVSweb <webmaster@jp.NetBSD.org>