From owner-freebsd-current Tue Apr 30 11:23:26 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id LAA25344 for current-outgoing; Tue, 30 Apr 1996 11:23:26 -0700 (PDT) Received: from halloran-eldar.lcs.mit.edu (halloran-eldar.lcs.mit.edu [18.26.0.159]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id LAA25339 for ; Tue, 30 Apr 1996 11:23:24 -0700 (PDT) Received: by halloran-eldar.lcs.mit.edu; (5.65/1.1.8.2/19Aug95-0530PM) id AA22772; Tue, 30 Apr 1996 14:22:59 -0400 Date: Tue, 30 Apr 1996 14:22:59 -0400 From: Garrett Wollman Message-Id: <9604301822.AA22772@halloran-eldar.lcs.mit.edu> To: Wolfram Schneider Cc: current@FreeBSD.org Subject: Re: Files installed to /etc, (was: review request) In-Reply-To: <199604301549.RAA01126@localhost> References: <199604292241.PAA05374@phaeton.artisoft.com> <23826.830823868@time.cdrom.com> <199604301549.RAA01126@localhost> Sender: owner-current@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk < said: > Solution: a variable MV="mv -f" in sys.mk Better solution: write `mv -f' in Makefiles. There is no inherent virtue in symbolic names; the need for `-f' is grossly unlikely to change in situations where `mv' remains constant. (Paraphrase due to Stephen Spackmann.) > 2. Same problem for 'rm', use variable RM="rm -f"in sys.mk Same better solution. > 4. A target for executable scripts > SCRIPTS= pagesize.sh # blubber.pl foo.elc Far better: PROG= pagesize bsd.prog.mk: ------------------------------------ .sh: .if defined(SCRIPTSED) ${SCRIPTSED} < ${.IMPSRC} > ${.TARGET} .else cp ${.IMPSRC} ${.TARGET} chmod 755 ${.TARGET} ------------------------------------ (And remember to turn off `-s' in `realinstall'.) -GAWollman -- Garrett A. Wollman | Shashish is simple, it's discreet, it's brief. ... wollman@lcs.mit.edu | Shashish is the bonding of hearts in spite of distance. Opinions not those of| It is a bond more powerful than absence. We like people MIT, LCS, ANA, or NSA| who like Shashish. - Claude McKenzie + Florent Vollant