[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gmake Makefile target X also process target Y when target X called
From: |
Henrik Carlqvist |
Subject: |
Re: gmake Makefile target X also process target Y when target X called |
Date: |
Mon, 05 Feb 2007 23:03:32 +0100 |
User-agent: |
Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity.) |
"weathercoach@gmail.com" <weathercoach@gmail.com> 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