[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GNU Make enhansment patch - batching compiles
From: |
Paul D. Smith |
Subject: |
Re: GNU Make enhansment patch - batching compiles |
Date: |
Thu, 3 May 2001 11:53:29 -0400 |
%% "Jason Wessel" <address@hidden> writes:
jw> Here is a more concrete example and why $? doesn't work for this
jw> application.
jw> First the non-complicated example, with just single compiles:
jw> all: 1.o 2.o 3.o
jw> 1.o: 1.c
jw> gcc -c $<
jw> 2.o: 2.c
jw> gcc -c $<
jw> 3.o: 3.c
jw> gcc -c $<
jw> Now if I want to batch up all the files to compiler at once
jw> I try this to make use of the $?:
jw> all: 1.o 2.o 3.o
jw> 1.o 2.o 3.o: 1.c 2.c 3.c
jw> gcc -c $?
I think what Eli is suggesting is you do it like this:
CompList1: jason.java fine.java mine.java
@if [ "$?" = "" ]; then; \
echo targets up to date. ; \
else
echo compiling $? into outputs; \
fi
--
-------------------------------------------------------------------------------
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