]> SALOME platform Git repositories - modules/visu.git/blob - adm_local/unix/make_common_starter.am
Salome HOME
Join modifications from BR_Dev_For_4_0 tag V4_1_1.
[modules/visu.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)/@PACKAGE@
11 libdir             = $(prefix)/lib@LIB_LOCATION_SUFFIX@/@PACKAGE@
12 bindir             = $(prefix)/bin/@PACKAGE@
13 purebindir         = $(prefix)/bin
14 salomescriptdir    = $(bindir)
15
16 # Tests environment folders
17 testsenvirondir    = $(prefix)/Tests/environ
18 testsenvironcshdir = $(prefix)/Tests/environ/csh
19
20 # Directory for installing idl files
21 salomeidldir       = $(prefix)/idl/@PACKAGE@
22
23 # Directory for installing resource files
24 salomeresdir       = $(prefix)/share/@PACKAGE@/resources/@MODULE_NAME@
25
26 # Directories for installing admin files
27 admlocaldir       = $(prefix)/adm_local
28 admlocalunixdir     = $(admlocaldir)/unix
29 admlocalm4dir        = $(admlocaldir)/unix/config_files
30
31 # Shared modules installation directory
32 sharedpkgpythondir =$(pkgpythondir)/shared_modules
33
34 # Documentation directory
35 docdir             = $(datadir)/doc/@PACKAGE@
36
37 # common rules
38
39 # moc-files generation
40 %_moc.cxx: %.h
41         $(MOC) $< -o $@
42
43 # qm-files generation
44 %.qm: %.po
45         $(MSG2QM) $< $@
46
47 EXTRA_DIST=$(MOC_FILES:%_moc.cxx=%.h) $(nodist_salomeres_DATA:%.qm=%.po)
48
49 mostlyclean-local:
50         rm -f @builddir@/*_moc.cxx
51         rm -f @builddir@/*.qm
52
53 # tests
54 tests: unittest
55
56 unittest: $(UNIT_TEST_PROG)
57         @if test "x$(UNIT_TEST_PROG)" != "x"; then \
58             $(UNIT_TEST_PROG);                     \
59         fi;