I've created the .glade file for questedit, but now I've run into a problem.
I would like to include the .glade stuff in the source code (as with mapedit or modeller), but if possible without having two copies of it. My idea was to create a header file at make time that will contain the .glade XML as a string. However, I don't seem to get it to work. Here's the target of the Makefile: wnd_questedit.h : questedit.glade cat << EOF > $@ \ #ifndef WND_QUESTEDIT_H \ #define WND_QUESTEDIT_H \ \ char main_wnd[] = \ EOF # sed -e 's/"/\\"/g' -e 's/>$/>"/' -e 's/^( *)</\1"</' $< >> $@ cat <<EOF >> $@ \ ; \ \ #endif \ EOF Aside from the sed command not properly working yet, I don't even get the #ifdef stuff in the resulting file. Does anyone know what I am doing wrong? Or does anyone have a better idea of including the .glade stuff in the code without doing it manually? Kai _______________________________________________ Adonthell-devel mailing list Adonthell-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/adonthell-devel