help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multi-arch builds and the -n option


From: Paul D. Smith
Subject: Re: Multi-arch builds and the -n option
Date: Mon, 8 Jan 2001 11:30:48 -0500

%% Sankaranarayanan K V <address@hidden> writes:

  skv> 'gmake -n' gives errors. Why is this so?

  skv> Output below:

  skv> $ gmake -n
  skv> [ -d _common ] || mkdir -p _common
  skv> gmake --no-print-directory -C _common -f 
/users/sankar/BACKUP/work/learning/make/paul/example/Makefile 
SRCDIR=/users/sankar/BACKUP/work/learning/make/paul/example 
  skv> sed 's/@VERSION@/1.0/g' 
/users/sankar/BACKUP/work/learning/make/paul/example/version.c.in > version.c
  skv> :
  skv> [ -d _SunOS ] || mkdir -p _SunOS
  skv> gmake --no-print-directory -C _SunOS -f 
/users/sankar/BACKUP/work/learning/make/paul/example/Makefile 
SRCDIR=/users/sankar/BACKUP/work/learning/make/paul/example 
  skv> gmake[1]: *** No rule to make target `version', needed by `all'.  Stop.
  skv> gmake: *** [_SunOS] Error 2

Sure.

The target "version" requires version.c to exist before it can be
built.  But, version.c doesn't exist because, since you used -n, the
rule to create it wasn't run.

Since there's no version.c and no rule to build it, make can't envision
any way to build "version".

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://www.paulandlesley.org/gmake/
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist



reply via email to

[Prev in Thread] Current Thread [Next in Thread]