Search code examples
makefileclearcasegnu-make

Clearcase make vs Gnu make output


I have this simple Makefile:

a:
        touch a

b: a
        touch b

all: b
        touch myapp

make all returns:

touch a
touch b
touch myapp

clearmake all (or clearmake -C gnu all) returns:

touch a

touch b

touch myapp

How to get rid of the unnecessary newlines?


Solution

  • There is not many possibility to change the output of clearmake (or clearmake -C gnu)

    (-n only prints the commands, -s does not print it)

    That leaves you with workarounds like:

    clearmake all | grep -v '^$'