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

Re: libgtk-dev bug?



Rob Browning <rlb@cs.utexas.edu> wrote:
> Well, I'd like to be able to do things like change variables at
> different points during the build (in the makefile), and have the
> results propagate, and its idea of a "macro" is nearly useless.

Assume you have a shell program named getstate, along the lines of:

#!/bin/sh
# access one line of state, given appropriate prefix
cat "$1"* 2>/dev/null | tail -1

then you can put into your makefile:

MYSTATE= `getstate cheese`

Now you can have targets, such as

cheese2: cheese1
	echo >>mylog $MYSTATE
	echo Howdy >cheese2

Or, perhaps something less simpleminded.

-- 
Raul


--  
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: