Subject: Re: When to put \n in Makefile
To: Tomasz Luchowski <zuntum@eik.pl>
From: Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>
List: tech-pkg
Date: 01/22/2001 00:50:12
On Sun, 21 Jan 2001, Tomasz Luchowski wrote:
> - ${SED} -e "s,@PREFIX@,${PREFIX},g" \
> - -e "s,@CC@,${CC},g" \
> - -e "s,@CFLAGS@,${CFLAGS},g" \
> - < ${WRKSRC}/Makefile > ${WRKSRC}/Makefile.done
> + ${SED} -e "s,@PREFIX@,${PREFIX},g" -e "s,@CC@,${CC},g" \
> + -e "s,@CFLAGS@,${CFLAGS},g" < ${WRKSRC}/Makefile \
> + > ${WRKSRC}/Makefile.done
>
> These are changes that fredb made to my Makefile.
> I wonder which way is prefered -- shorter (many -e's in one line)
> or more readable and easier to edit (my version, minuses).
> [ I can easily delete one s/ with "dd" in my favourite editor,
> and don't need to modify other ]
>
> I don't want to complain, I'm just asking.
Personally, I'd go for readbility. But i guess Fred has a reason for what
he does.
- Hubert
--
Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>