Home| base |src.bin|build| makeall Index

makeall

Syntax
makeall --help
makeall [-vb] [-a] [-q] src
makeall [-vb] [-a] [-q] src lst...
makeall [-vb] [-a] [-q] src stdin
Synopsis
Searches a source code tree looking for source code directories and compiles them.
Options
--helpprint the help message and exit.
-vbverbose. Log status to standard error in addition to standard out.
-acompile all directories found, do not perform version checking to find the most recent.
-qquiet mode. Keep going if an error occurs.
srcsource directory in which to search for source code.
lst...list of source code directories to compile.
stdinread source code directories from standard input.
Description

The program searches the directory tree specified as a source directory looking for source code to compile. Every time a makefile is encountered make is run in that directory.

Different versions of the same software can be installed on the same system and are distinguished by having the major and minor version numbers appended to the library home directory name. By default if two versions are installed on a system, only the most recent is compiled. This behavior can be overridden by specifying the "-a" option.

Any additional arguments on the command line after the source directory are assumed to be a list of specific software to compile. The search of the directory tree is still performed, but only the source code in directories that match the list is compiled. The version number is stripped from the end of the directory name when comparing it with the list.

If the first argument after the source directory is "stdin", the list of directories is read from the standard input stream.

The program will terminate if an error occurs, unless the "-q" option is specified.

All operations are logged to standard output so that they can be recorded in a log file.

Examples
makeall code/src.lib/general > log.make

Search the directory "code/src.lib/general" looking for software to compile. Compile the most recent versions and record a log of operations in the file "log.make".

makeall -vb code/src.lib/general tcpip web task > log.make

Search the directory "code/src.lib/general" looking for software to compile in the directories "tcpip", "web" and "task". Compile the most recent versions and record a log of operations in the file "log.make". The log is also reported to standard error.