echo -e " -g : to create a gui part in your component building tree"
echo -e " -c : to compile after generation"
echo -e " (use this option only if you don't have dependencies in your header or libraries"
- echo -e " if it is the case, you'll have to adapt your Makefile.in"
+ echo -e " if it is the case, you'll have to adapt your Makefile.am"
echo -e " -l : to launch salome "
exit
}
then
echo -e "\n-> Delete GUI part from the tree" >> hxx2salome_journal
'rm' -rf ${CLASS_NAME}_SRC/src/${CLASS_NAME}GUI
- sed "s/${CLASS_NAME}GUI//" < ${CLASS_NAME}_SRC/src/Makefile.in > /tmp/h2smkf.$$
- mv /tmp/h2smkf.$$ ${CLASS_NAME}_SRC/src/Makefile.in
+ sed "s/${CLASS_NAME}GUI//" < ${CLASS_NAME}_SRC/src/Makefile.am > /tmp/h2smkf.$$
+ mv /tmp/h2smkf.$$ ${CLASS_NAME}_SRC/src/Makefile.am
+ cat ${CLASS_NAME}_SRC/configure.ac | awk ' $0 !~ "^.*GUI/Makefile" { print $0}' > /tmp/h2scac.$$
+ mv /tmp/h2scac.$$ ${CLASS_NAME}_SRC/configure.ac
fi
#
echo -e "\n-> Substitute generated code in idl file"
get_python_test_file
get_info_makefile
- echo -e "\n-> Substitute flags in Makefile.in"
+ echo -e "\n-> Substitute flags in Makefile.am"
sed "s?HXX2SALOME_INCLUDE?${makefile_include}?g
s?HXX2SALOME_PYTHON_FILE?${python_test_file}?g
s?HXX2SALOME_LIB?${makefile_lib}?g
echo -e "\t\tby editing your own per-user configuration file ~/.SalomeApprc.3.x.x)"
echo -e "\nIf the header of your component includes other headers that are not in the same directories,"
echo -e "or if your library has dependencies you want to specify,"
- echo -e "you'll have to modify the following files Makefile.in: "
- echo -e "\t\${${CLASS_NAME}_SRC_DIR}/src/${CLASS_NAME}/Makefile.in"
- echo -e "\t\${${CLASS_NAME}_SRC_DIR}/src/${CLASS_NAME}GUI/Makefile.in"
+ echo -e "you'll have to modify the following files Makefile.am: "
+ echo -e "\t\${${CLASS_NAME}_SRC_DIR}/src/${CLASS_NAME}/Makefile.am"
+ echo -e "\t\${${CLASS_NAME}_SRC_DIR}/src/${CLASS_NAME}GUI/Makefile.am"
}
launch_salome()