>>>>> "P" == Paul Brannan <pbrannan / atdesk.com> writes: P> CFLAGS+=`gtk-config --cflags` P> LDFLAGS+=`gtk-config --ldflags` P> Would it be possible to modify ruby in such a way that I could do: P> CFLAGS+=`ruby --cflags` P> LDFLAGS+=`ruby --ldflags` Just write a ruby script ruby-config P> but this is not nearly as clean. BTW, does anyone know why I can't just P> get Config::CONFIG['archdir'] instead of that messy first line? It's P> available from irb, but from inside a Makefile, I just get nil. Work fine for me pigeon% cat Makefile RUBYARCHDIR=$(shell ruby -rrbconfig -e "print Config::CONFIG['archdir']") all: @echo $(RUBYARCHDIR) pigeon% pigeon% make /usr/local/lib/ruby/1.6/i686-linux pigeon% Guy Decoux