Target dependent on dynamically generated dependency list

2017-11-24 Thread Kip Warner
Hey list,

I have an XML file that is part of my source tree. It contains a list
of files that are to be compiled into my executable, such as icons,
menus, etc. for GtkBuilder. This happens when glib-compile-resources(1) 
tool consumes this XML file and emits C source and header files that
can be compiled into object code (e.g. BUILT_SOURCES), linked with the
resulting executable, and referenced via program logic at run time.

When one of the files referenced in the XML (a GResource file) is
updated the build environment should re-generate the resulting source
code.

The glib-compile-resources(1) tool has a switch that allows it to not
emit any code, but just output a dependency list compatible with most
implementations of Make, e.g. akin to gcc -M.

What is the most elegant and portable way to integrate this
functionality into my Automake Makefile.am? This is my solution so far,
but I really don't think this feels elegant.

https://pastebin.com/STGvw2Fd

Yours truly,

-- 
Kip Warner | Senior Software Engineer
OpenPGP signed/encrypted mail preferred
http://www.thevertigo.com


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


dependency list ...

2010-10-19 Thread Teratux
 Hi, I was wondering how to know the build dependencies for a package 
before building it ... For example I would like to build a package and 
not get any fuss about unmet dependencies.  Is there a way to print a 
list of package dependencies to meet before building it ??


If so, what could be the autoconf macro that would aid me in specifying 
this explicitly ... I'm guessing:


PKG_CHECK_MODULES

Thanks in advance ...



Re: dependency list ...

2010-10-19 Thread Ralf Wildenhues
Hello,

* Teratux wrote on Tue, Oct 19, 2010 at 10:22:15PM CEST:
  Hi, I was wondering how to know the build dependencies for a
 package before building it ... For example I would like to build a
 package and not get any fuss about unmet dependencies.  Is there a
 way to print a list of package dependencies to meet before building
 it ??

No, that infrastructure doesn't yet exist in a systematic way.  But we
would like to change that eventually and invent something like it:
http://thread.gmane.org/gmane.comp.sysutils.autoconf.general/13203

Contributions welcome.

Cheers,
Ralf