Unix Programming - Re: make -q

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > February 2004 > Re: make -q





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: make -q
Jens Schweikhardt

2004-02-13, 1:44 am

Frédéric Mayot <toto@toto.com> wrote
in <402cd809$0$28760$626a14ce@news.free.fr>:
# Hi,
#
# I think it's not the right newsgroup but I don't know where to post...

comp.unix.programmer might fit better. Xpost and Followup-To set.

# I tried "make -q; echo $?" to test if my rules are up to date, but it
# always returns the same exit status 1. What's wrong ?

Rules cannot be up to date. Targets can. If they aren't, run make
without -q, then they should be. If they still aren't, your Makefile is
buggy.

Regards,

Jens
--
Jens Schweikhardt http://www.schweikhardt.net/
SIGSIG -- signature too long (core dumped)
newsgroup user

2004-02-13, 2:35 am

> Rules cannot be up to date. Targets can.

Sorry, I meant target.

> If they aren't, run make without -q, then they should be. If they
> still aren't, your Makefile is buggy.


The thing is that I don't want to execute make... I need to know if make
is going to update the targets, which -q is supposed to do (??) (The
makefile works perfectly well without -q)
Nick Landsberg

2004-02-14, 1:33 pm



Fr=E9d=E9ric Mayot wrote:

>=20
>=20
> Sorry, I meant target.
>=20
>=20
> The thing is that I don't want to execute make... I need to know if mak=

e=20
> is going to update the targets, which -q is supposed to do (??) (The=20
> makefile works perfectly well without -q)


There are several variations on make. At least one of which (nmake)
"compiles" the "makefile" (including the rules) into pseudo-code.
It may be that the version of "make" the OP is using only
uses the "pseudo-code" version when using the -q option.

If this is the case, there may be an option to just compile
the pseudo-code without executing it. Check appropriate
man pages for you version of make.


--=20
=D1
"It is impossible to make anything foolproof because fools are so=20
ingenious" - A. Bloch

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com