I copy a command line that I pasted into the shell, e.g.
command < file1 -other_input file2 > file3
I paste it into my makefile, twice
command < file1 -other_input file2 > file3
command < file1 -other_input file2 > file3
and then edit
.PHONY: verb-to-run-command
verb-to-run-command: file3
file3: command file1 file2
command < file1 -other_input file2 > file3
1 comment:
I'm sure that I have no need to explain the deficiencies of make.
Except perhaps to those who still insist on using make.
Post a Comment