Control output from makefile

asc99c

I'm trying to write a makefile to replace one of the scripts used in building a fairly large application.

The current script compiles one file at a time, and the primary reason for using make is to parallelise the build process. Using make -j 16 I currently get a factor of 4 speedup on our office server.

But what I've lost is some readability of the output. The compilation program for a file bundles up a few bits and pieces of work, including running custom pre-compilers, and running the gcc command. Each of these steps outputs some information, and I would prefer it to buffer the output from the command, and then show the whole lot in one go.

Is it possible to make make do this?

Paul Evans

A simple way to accomplish this is to send all the log output a to log directory with each file named, say:

log_file_20131104_12013478_b.txt  // log_file_<date>_<time>_<sequence letter>.txt

and then simply cat them all together as your last make job in the dependency chain:

cat log_dir/log_file_20131104_12013478_*.txt > log_file_20131104_12013478.txt

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Control output of c++ program using makefile

From Dev

make output is different from Makefile

From Dev

Unexpected output from checking if mouse within control

From Dev

Makefile target color output

From Dev

Redirect the Java output in a Makefile

From Dev

Output to multiple files with Makefile

From Dev

Makefile cppUtest output reformat

From Dev

How to control interactive console input/output from Python on Windows?

From Dev

Complete control over HTML output from TYPO3

From Dev

How to control output from Twisted-trial tests?

From Dev

Removing control chars (including console codes / colours) from script output

From Dev

How to control interactive console input/output from Python on Windows?

From Dev

Control over where a form display the output from your submission

From Dev

Makefile: Run other makefile from makefile

From Dev

GNU Make - Set MAKEFILE variable from shell command output within a rule/target

From Dev

Kernel module makefile output name

From Dev

Output some newlines through Makefile

From Dev

Suppressing First Part of Output in Makefile

From Dev

Control output format of do

From Dev

Output of ssh control command ~#

From Dev

Control character in awk output

From Dev

How to control the output of fileno?

From Dev

Removing dependencies from a Makefile

From Dev

Overwrite variable from makefile

From Dev

From Makefile to Cmake

From Dev

r - how to subtract first date entry from last date entry in grouped data and control output format

From Dev

How to wrap output text from multiline textbox (web control) with a pre-configured width?

From Dev

How can I select an output and set my configuration for pulse audio volume control from the terminal?

From Dev

linux Makefile syntax for blank lines in screen output

Related Related

  1. 1

    Control output of c++ program using makefile

  2. 2

    make output is different from Makefile

  3. 3

    Unexpected output from checking if mouse within control

  4. 4

    Makefile target color output

  5. 5

    Redirect the Java output in a Makefile

  6. 6

    Output to multiple files with Makefile

  7. 7

    Makefile cppUtest output reformat

  8. 8

    How to control interactive console input/output from Python on Windows?

  9. 9

    Complete control over HTML output from TYPO3

  10. 10

    How to control output from Twisted-trial tests?

  11. 11

    Removing control chars (including console codes / colours) from script output

  12. 12

    How to control interactive console input/output from Python on Windows?

  13. 13

    Control over where a form display the output from your submission

  14. 14

    Makefile: Run other makefile from makefile

  15. 15

    GNU Make - Set MAKEFILE variable from shell command output within a rule/target

  16. 16

    Kernel module makefile output name

  17. 17

    Output some newlines through Makefile

  18. 18

    Suppressing First Part of Output in Makefile

  19. 19

    Control output format of do

  20. 20

    Output of ssh control command ~#

  21. 21

    Control character in awk output

  22. 22

    How to control the output of fileno?

  23. 23

    Removing dependencies from a Makefile

  24. 24

    Overwrite variable from makefile

  25. 25

    From Makefile to Cmake

  26. 26

    r - how to subtract first date entry from last date entry in grouped data and control output format

  27. 27

    How to wrap output text from multiline textbox (web control) with a pre-configured width?

  28. 28

    How can I select an output and set my configuration for pulse audio volume control from the terminal?

  29. 29

    linux Makefile syntax for blank lines in screen output

HotTag

Archive