NAME
mkls —
generate make variable assignment
list
SYNOPSIS
mkls |
[-dis] [-f
makefile] --
variable file ... |
DESCRIPTION
The mkls utility generates a
make(1) conformant assignment list to
variable for each file and
appends it to makefile. An existing assignment list
using the same variable is removed prior to appending.
By default, the resulting makefile is written to
standard output.
The options are as follows:
-d- Produce a diff of makefile.
-fmakefile- Specify an alternative makefile.
-i- In place edit of makefile.
-s- Sort each assignment list.
- variable file ...
- Add file to variable. Multiple assignment lists may be given by separating each one with the ‘--’ end of options sentinel.
FILES
- Makefile
- The default makefile.
EXAMPLES
Generate a list of all source code files and manuals:
$ ls *.[ch] *.[[:digit:]] extern.h prog.c prog.1 $ mkls -- SRCS *.[ch] -- MAN *.[[:digit:]] SRCS+= extern.h SRCS+= prog.c MAN+= prog.1
DIAGNOSTICS
The mkls utility exits 0 on
success, and >0 if an error occurs.
SEE ALSO
AUTHORS
Anton Lindqvist <anton@basename.se>