# Copyright (C) CEA, EDF
# Author : Nicolas Crouzet (CEA)
# --
-bin_SCRIPTS = hxx2salome \
+dist_bin_SCRIPTS = hxx2salome \
parse01.awk \
parse0.awk \
parse1.awk \
renameSalomeModule \
runIDLparser \
SA_build \
- SA_new_cpp_component \
- cpp_compo_template.tgz
-
-install-data-hook:
- \cp -f ${srcdir}/template_src.tgz ${srcdir}/template_coupling_src.tgz ${exec_prefix}/bin
+ SA_new_cpp_component \
+ cpp_compo_template.tgz \
+ template_src.tgz \
+ template_coupling_src.tgz
AM_CPPFLAGS = @QT_MT_INCLUDES@ -DBINDIR="\"${bindir}\""
LDADD = ${QT_LIB_DIR} -lQtCore -lQtGui
-CLEANFILES = hxx2salome_moc.cpp hxx2salome.h hxx2salome.cpp
-ghxx2salome_SOURCES = main.cpp hxx2salome.h hxx2salome.cpp hxx2salome_ui.h hxx2salome_moc.cpp
-BUILT_SOURCES = hxx2salome_ui.h hxx2salome_moc.cpp
+EXTRA_DIST = hxx2salome.ui
+
+UIC_FILES = hxx2salome_ui.h
+
+MOC_FILES = hxx2salome_moc.cpp
+
+BUILT_SOURCES = $(UIC_FILES) $(MOC_FILES)
+
+dist_ghxx2salome_SOURCES = main.cpp hxx2salome.h hxx2salome.cpp
+nodist_ghxx2salome_SOURCES = $(UIC_FILES) $(MOC_FILES)
+
+CLEANFILES = $(UIC_FILES) $(MOC_FILES)
%_ui.h: %.ui
$(UIC) -o $@ $<
%_moc.cpp: %.h
${MOC} $< -o $@
-
-main.cpp: hxx2salome_ui.h hxx2salome_moc.cpp