On Thu, 2017-05-25 at 14:03 +0000, William Harrington wrote:
> Hello Simon,
> 
> So pretty much like this right? Can work around circular deps real
> well
> with Make.
> 
> cat Makefile
> vim: Gtk2 GPM Lua Python2 Ruby
>         @echo vim
> 
> Gtk2: Atk2 Gdk-pixbuf Pango hicolor-icon-theme
>         @echo Gtk2
> 
> Atk2: GLib
>         @echo Atk2
> 

That's the idea, yeah. I'm not sure how well it copes with circular
dependencies though... I generally adjusted my scripts to avoid them. 

Using a Makefile for this is a bit of a hack, but if you've already got
a list of items and dependencies, it's an easier option than scripting
your own implementation of a topological sorting algorithm.

For the record, the earliest version of my BLFS scripts *did* implement
a topological sort algorithm... in bash. I don't recommend it... ;)

Simon.

Attachment: signature.asc
Description: This is a digitally signed message part

-- 
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to