use rm -f ... to remove the script before creating
refer to $@ not the explicit name
This commit is contained in:
parent
fe17ee6907
commit
ed2bf17af1
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.5 1997/03/24 22:02:54 christos Exp $
|
||||
# $NetBSD: Makefile,v 1.6 1997/04/07 07:56:13 lukem Exp $
|
||||
# from: $Id: Makefile,v 8.1 1994/12/15 06:23:46 vixie Exp
|
||||
|
||||
.PATH: ${.CURDIR}/../man
|
||||
|
@ -10,9 +10,10 @@ FILES=named.reload
|
|||
FILESMODE=${BINMODE}
|
||||
|
||||
named.reload: named.reload.sh Makefile ${.CURDIR}/../Makefile.inc
|
||||
rm -f $@
|
||||
sed -e "s|%DESTSBIN%|${BINDIR}|" \
|
||||
< ${.CURDIR}/named.reload.sh > named.reload
|
||||
chmod +x named.reload
|
||||
< ${.CURDIR}/named.reload.sh > $@
|
||||
chmod +x $@
|
||||
|
||||
.include "../../Makefile.inc"
|
||||
.include <bsd.prog.mk>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.5 1997/03/24 22:02:56 christos Exp $
|
||||
# $NetBSD: Makefile,v 1.6 1997/04/07 07:56:24 lukem Exp $
|
||||
# from: $Id: Makefile,v 8.1 1994/12/15 06:23:47 vixie Exp
|
||||
|
||||
.PATH: ${.CURDIR}/../man
|
||||
|
@ -11,8 +11,9 @@ FILES= named.restart
|
|||
.include "../../Makefile.inc"
|
||||
|
||||
named.restart: named.restart.sh Makefile ${.CURDIR}/../Makefile.inc
|
||||
rm -f $@
|
||||
sed -e "s|%DESTSBIN%|${BINDIR}|" \
|
||||
< ${.CURDIR}/named.restart.sh > named.restart
|
||||
chmod +x named.restart
|
||||
< ${.CURDIR}/named.restart.sh > $@
|
||||
chmod +x $@
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
|
Loading…
Reference in New Issue