Hello list, I am using gnu autotools for my project, where i want to control the order of compilation. My problem is, before any of myproject_SOURCES are compiled, a glade file has to be converted into an xml file via "gtk-builder-convert".
Therefore, i need to start the execution with this python script for the xml conversion and then all the c code(myproject_SOURCES). In order to make it self-explainetory, i have written that simple command as rule that has to be executed at the beginning of compilation. How is the best way to do it? And is it possible also to check a symbol value from config.h to decide between rules to execute (step1_b, step1_bn)? This is how my src/Makefile.am looks like: bin_PROGRAMS = letterizer letterizer_SOURCES = fileio.c interops.c xmlfile.c letterizer.c lttrzr_gui.c signals.c AM_CPPFLAGS = -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 \ -I/usr/include/cairo -I/usr/include/pango-1.0 \ -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 \ -I/usr/include/libpng12 -I/usr/include/pixman-1\ -I/usr/include/libxml2 letterizer_LDADD =-lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0\ -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype\ -lz -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0\ -lm -lxml2 letterizer_CFLAGS = -export-dynamic # to begin the compilation with, builder exists step1_b: gtk-builder-convert step1.glade -o data/step1.xml # to begin the compilation with, builder doesn't exist step1_bn: cp step1_preconv.xml data/step1.xml Many thanks, Umut