[ROOT] escape sequences in a makefile

From: Ingo Strauch (strauch@toots.physik.rwth-aachen.de)
Date: Tue Aug 15 2000 - 13:53:39 MEST


Hi rooters!

Here's a question not really specific to ROOT but I hope someone has an
answer:

I want to have a target in my Makefile which prints the contents of some
variables to the terminal. Trouble is, the output gets quite long so I want
the name of the variable to be bold.

Looking at the /etc/termcap I find out how to do it in the shell (linux):

echo "\033[1mCSRCSUF\033[m\017 = C"  gives
<b>CSRCSUF</b> = C

So I try the following in my Makefile:

	@echo "\033[1mCSRCSUF\033[m\017 = "$(CSRCSUF)   gives
\033[1mCSRCSUF\033[m\017 = C

So is there no way to use escape sequences in a Makefile? Or does somebody
know how to get the bold output?

Cheers,
Ingo

----------------------------------------------------------------------------
Ingo Strauch       Budapester Str. 30, 20359 Hamburg, Tel.: +49 40 7421 4722
----------------------------------------------------------------------------
DESY, Group H1/AAC1, Room 1c354      | I.Phys.Inst. RWTH Aachen, Room 28B210
Notkestr. 85, 22607 Hamburg          |       Sommerfeldstr. 14, 52056 Aachen
Tel: +49 40 8998-2312 / Fax: -4385   |  Tel: +49 241 80-7183 / Fax: 8888-661
strauch@mail.desy.de                 |   strauch@toots.physik.rwth-aachen.de
----------------------------------------------------------------------------
www-h1.desy.de/~strauch/      or      www-users.rwth-aachen.de/Ingo.Strauch/
----------------------------------------------------------------------------



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:31 MET