"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I'm trying to create a Makefile (my first one:).
> When someone calls "gmake commit" I want the "check" target to be > processed first If so "check" is said to be a prerequisite of "commit". > help: > @echo "usage blah blah blah" > > check: > @syntax_checker $(CONFIG_DIR) > > commit: > @cvs commit -m $(LOG_MESSAGE) To tell the rule about a prerequisite you write the prerequisites after the colon on the target line, something like: commit: check @cvs commit -m $(LOG_MESSAGE) regards Henrik -- The address in the header is only to prevent spam. My real address is: hc1(at)poolhem.se Examples of addresses which go to spammers: [EMAIL PROTECTED] [EMAIL PROTECTED] _______________________________________________ help-gnu-utils mailing list help-gnu-utils@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-utils