2008/1/31, Victor Lowther <[EMAIL PROTECTED]>:
> 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?
_______________________________________________
Pm-utils mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/pm-utils

Reply via email to