Salome HOME
Implement 'make dist' and 'make distcheck' steps support
[modules/smesh.git] / adm_local / unix / make_common_starter.am
1 #
2 # ============================================================
3 # This file defines the common definitions used in several
4 # Makefile. This file must be included, if needed, by the file
5 # Makefile.am.
6 # ============================================================
7 #
8
9 # Standard directory for installation
10 salomeincludedir   = $(includedir)/salome
11 libdir             = $(prefix)/lib@LIB_LOCATION_SUFFIX@/salome
12 bindir             = $(prefix)/bin/salome
13 salomescriptdir    = $(bindir)
14 salomepythondir    = $(pythondir)/salome
15 salomepyexecdir    = $(pyexecdir)/salome
16
17 # Directory for installing idl files
18 salomeidldir       = $(prefix)/idl/salome
19
20 # Directory for installing resource files
21 salomeresdir       = $(prefix)/share/salome/resources/@MODULE_NAME@
22
23 # Directories for installing admin files
24 admlocaldir        = $(prefix)/adm_local
25 admlocalunixdir    = $(admlocaldir)/unix
26 admlocalm4dir      = $(admlocaldir)/unix/config_files
27
28 # Shared modules installation directory
29 sharedpkgpythondir = $(salomepythondir)/shared_modules
30
31 # Documentation directory
32 docdir             = $(datadir)/doc/salome
33
34 # common rules
35
36 # meta object implementation files generation (moc)
37 %_moc.cxx: %.h
38         $(MOC) $< -o $@
39
40 # translation (*.qm) files generation (lrelease)
41 %.qm: %.ts
42         $(LRELEASE) $< -qm $@
43
44 # resource files generation (qrcc)
45 qrc_%.cxx: %.qrc
46         $(QRCC) $< -o $@ -name $(*F)
47
48 # qt forms files generation (uic)
49 ui_%.h: %.ui
50         $(UIC) -o $@ $<
51
52 # extra distributed files
53 EXTRA_DIST = $(MOC_FILES:%_moc.cxx=%.h) $(QRC_FILES:qrc_%.cxx=%.qrc) \
54              $(UIC_FILES:ui_%.h=%.ui) $(nodist_salomeres_DATA:%.qm=%.ts)
55
56 # customize clean operation
57 mostlyclean-local:
58         rm -f @builddir@/*_moc.cxx
59         rm -f @builddir@/*.qm
60         rm -f @builddir@/ui_*.h
61         rm -f @builddir@/qrc_*.cxx
62
63 # tests
64 tests: unittest
65
66 unittest: $(UNIT_TEST_PROG)
67         @if test "x$(UNIT_TEST_PROG)" != "x"; then \
68             $(UNIT_TEST_PROG);                     \
69         fi;