To edit the Makefile at the current target location file, use the
edit
command. The editing program of your choice is invoked
with the current line set to the active line in the program.
You can customize to use any editor you want by using the
EDITOR
environment variable. The only restriction is that your
editor, e.g.\ ex
), recognizes the following command-line syntax:
ex +number file
The optional numeric value +number specifies the number of the
line in the file where to start editing. For example, to configure
the GNU Make debugger to use the emacs
editor, you could use these commands
with a POSIX shell:
EDITOR=/usr/bin/emacs export EDITOR remake …
edit
Edit line specification using the editor specified by the
EDITOR
environment variable.