[Pm-utils] [patch review request] Remove hardcoded /usr/lib/pm-utils/functions dependence
Michael Biebl
mbiebl at gmail.com
Wed Jan 30 18:22:00 PST 2008
2008/1/31, Victor Lowther <victor.lowther at gmail.com>:
> Try 2 -- this time with real automake support.
> Sorry for the size of the patch -- lots of file renames, doncha know.
> The real changes are in pm/sleep.d/Makefile.am and src/Makefile.am
>
> Also sorry that the changes are fugly -- my small amount of research
> did not come up with a way of writing a rule that says "Transform all
> these files at once, make!"
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.
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