On Thu, Jul 17, 2008 at 10:20 AM, Jose-Marcio <[EMAIL PROTECTED]> wrote: > Currently, I've defined a new target (upgrade) which depends > on : > > upgrade : preinstall install postinstall
Note that that breaks under make -j upgrade. > Is there a more elegant way to do this ? I think it's about as good as it gets. I really hate packages that try to futz around with my system in their 'install' target. Sometimes it's as simple as chmod u+s, other times they want to start and stop daemons. Rather keep it explicit. Think about exposing your "preinstall" and "postinstall" targets as ones that can be individually run, even as 'make -n postinstall >/tmp/package/scripts/postinstall' - in fact I wish all packages that needed pre/post install actions would do this, so one wouldn't have to read the README (!) if all you want to do is install a tower of dependencies.