Re: gmake Makefile target X also process target Y when target X called
Henrik Carlqvist <[email protected]>
| Newsgroups | gmane.comp.gnu.utils |
|---|---|
| Organization | SunSITE.dk - Supporting Open source |
| Message-ID | <[email protected]> |
"[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: root@localhost postmaster@localhost