diff --git a/bin/csh/Makefile b/bin/csh/Makefile index ad6393d859df..daf47baeb7bb 100644 --- a/bin/csh/Makefile +++ b/bin/csh/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.23 2003/08/01 17:03:41 lukem Exp $ +# $NetBSD: Makefile,v 1.24 2003/10/19 00:14:16 lukem Exp $ # @(#)Makefile 8.1 (Berkeley) 5/31/93 # # C Shell with process control; VM/UNIX VAX Makefile @@ -25,16 +25,26 @@ DPSRCS+= errnum.h const.h CLEANFILES+= errnum.h const.h errnum.h: err.c - @rm -f ${.TARGET} - @echo '/* Do not edit this file, make creates it. */' > ${.TARGET} - @echo '#ifndef _h_sh_errnum' >> ${.TARGET} - @echo '#define _h_sh_errnum' >> ${.TARGET} - egrep 'ERR_' ${.ALLSRC} | egrep '^#define' >> ${.TARGET} - @echo '#endif /* _h_sh_errnum */' >> ${.TARGET} + ${_MKMSG} " create ${.TARGET}" + ${_MKCMD}\ + rm -f ${.TARGET} + ${_MKCMD}\ + (\ + echo '/* Do not edit this file, make creates it. */' ;\ + echo '#ifndef _h_sh_errnum' ;\ + echo '#define _h_sh_errnum' ;\ + egrep 'ERR_' ${.ALLSRC} | egrep '^#define' ;\ + echo '#endif /* _h_sh_errnum */' ;\ + ) > ${.TARGET} +const.c: errnum.h const.h: const.c - @rm -f ${.TARGET} - @echo '/* Do not edit this file, make creates it. */' > ${.TARGET} + ${_MKMSG} " create ${.TARGET}" + ${_MKCMD}\ + rm -f ${.TARGET} + ${_MKCMD}\ + echo '/* Do not edit this file, make creates it. */' > ${.TARGET} + ${_MKCMD}\ ${CC} -E ${CPPFLAGS} ${.ALLSRC} | egrep 'Char STR' | \ sed -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' | \ sort >> ${.TARGET} diff --git a/bin/ksh/Makefile b/bin/ksh/Makefile index aafddbfc4339..3065fb8834aa 100644 --- a/bin/ksh/Makefile +++ b/bin/ksh/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.17 2003/08/01 17:03:42 lukem Exp $ +# $NetBSD: Makefile,v 1.18 2003/10/19 00:18:53 lukem Exp $ .include @@ -21,17 +21,23 @@ USETBL= CLEANFILES+= siglist.out siglist.out.tmp # two steps to prevent the creation of a bogus siglist.out siglist.out: config.h sh.h siglist.in siglist.sh + ${_MKMSG} " create ${.TARGET}" + ${_MKCMD}\ sh $(.CURDIR)/siglist.sh "$(CC) -E $(CPPFLAGS) $(DEFS) -I. -I$(.CURDIR)" < $(.CURDIR)/siglist.in > siglist.out.tmp \ && mv siglist.out.tmp siglist.out # two steps to prevent the creation of a bogus emacs.out CLEANFILES+= emacs.out emacs.out.tmp emacs.out: emacs.c + ${_MKMSG} " create ${.TARGET}" + ${_MKCMD}\ sh $(.CURDIR)/emacs-gen.sh $(.CURDIR)/emacs.c > emacs.out.tmp \ && mv emacs.out.tmp emacs.out CLEANFILES+= ksh.1 ksh.1.tmp ksh.1: ksh.Man mkman + ${_MKMSG} " create ${.TARGET}" + ${_MKCMD}\ sh $(.CURDIR)/mkman ksh $(.CURDIR)/ksh.Man >ksh.1.tmp \ && mv ksh.1.tmp ksh.1