[Pm-utils] [patch review request] Remove hardcoded /usr/lib/pm-utils/functions dependence
Michael Biebl
mbiebl at gmail.com
Thu Jan 31 05:08:08 PST 2008
2008/1/31, Victor Lowther <victor.lowther at gmail.com>:
> On Jan 30, 2008 8:27 PM, Michael Biebl <mbiebl at gmail.com> wrote:
> > 2008/1/31, Michael Biebl <mbiebl at gmail.com>:
> > > One way to simplify this is as follows:
> > >
> > > sleep_in_scripts = foo.in bar.in baz.in
> > > sleep_SCRIPTS=$(sleep_in_scripts:.in=)
> > > CLEANFILES=$(sleep_SCRIPTS)
> > > do_subst = ...
> > > %: %.in Makefile
> > > $(do_subst) $< > $@
> > >
> > > %: %.in is a gnu make extension though.
>
> It turns out that there is a POSIX-ish way of doing this (I think).
>
Not quite:
$(sleep_SCRIPTS): $(sleep_sources) Makefile
this means, whenever *one* of the .in files is changed, all files are
re-processed. Not quite what we want.
Maybe we should put this whole effort on hold for the moment until we
find a better, less ugly way.
Cheers,
Michael
--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
More information about the Pm-utils
mailing list