update to upstream 1.3.99.6
[platform/upstream/syncevolution.git] / autotroll.am
1 # Makerules.
2 # This file is part of AutoTroll.
3 # Copyright (C) 2006, 2007, 2009, 2010  Benoit Sigoure.
4 #
5 # AutoTroll is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU General Public License
7 # as published by the Free Software Foundation; either version 2
8 # of the License, or (at your option) any later version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
18 # USA.
19 #
20 # In addition, as a special exception, the copyright holders of AutoTroll
21 # give you unlimited permission to copy, distribute and modify the configure
22 # scripts that are the output of Autoconf when processing the macros of
23 # AutoTroll.  You need not follow the terms of the GNU General Public License
24 # when using or distributing such scripts, even though portions of the text of
25 # AutoTroll appear in them. The GNU General Public License (GPL) does govern
26 # all other use of the material that constitutes AutoTroll.
27 #
28 # This special exception to the GPL applies to versions of AutoTroll
29 # released by the copyright holders of AutoTroll.  Note that people who make
30 # modified versions of AutoTroll are not obligated to grant this special
31 # exception for their modified versions; it is their choice whether to do so.
32 # The GNU General Public License gives permission to release a modified version
33 # without this exception; this exception also makes it possible to release a
34 # modified version which carries forward this exception.
35
36  # ------------- #
37  # DOCUMENTATION #
38  # ------------- #
39
40 # See autotroll.m4 :)
41
42 # --- #
43 # MOC #
44 # --- #
45
46 %.moc.cpp: %.hpp
47         $(AM_V_GEN)$(MOC) $(QT_CPPFLAGS) $(EXTRA_CPPFLAGS) $< -o $@
48 %.moc.cpp: %.hh
49         $(AM_V_GEN)$(MOC) $(QT_CPPFLAGS) $(EXTRA_CPPFLAGS) $< -o $@
50 %.moc.cpp: %.h
51         $(AM_V_GEN)$(MOC) $(QT_CPPFLAGS) $(EXTRA_CPPFLAGS) $< -o $@
52
53 %moc.cc: %.hpp
54         $(AM_V_GEN)$(MOC) $(QT_CPPFLAGS) $(EXTRA_CPPFLAGS) $< -o $@
55 %.moc.cc: %.hh
56         $(AM_V_GEN)$(MOC) $(QT_CPPFLAGS) $(EXTRA_CPPFLAGS) $< -o $@
57 %.moc.cc: %.h
58         $(AM_V_GEN)$(MOC) $(QT_CPPFLAGS) $(EXTRA_CPPFLAGS) $< -o $@
59
60 %.moc.cxx: %.hpp
61         $(AM_V_GEN)$(MOC) $(QT_CPPFLAGS) $(EXTRA_CPPFLAGS) $< -o $@
62 %.moc.cxx: %.hh
63         $(AM_V_GEN)$(MOC) $(QT_CPPFLAGS) $(EXTRA_CPPFLAGS) $< -o $@
64 %.moc.cxx: %.h
65         $(AM_V_GEN)$(MOC) $(QT_CPPFLAGS) $(EXTRA_CPPFLAGS) $< -o $@
66
67 %.moc.C: %.hpp
68         $(AM_V_GEN)$(MOC) $(QT_CPPFLAGS) $(EXTRA_CPPFLAGS) $< -o $@
69 %.moc.C: %.hh
70         $(AM_V_GEN)$(MOC) $(QT_CPPFLAGS) $(EXTRA_CPPFLAGS) $< -o $@
71 %.moc.C: %.h
72         $(AM_V_GEN)$(MOC) $(QT_CPPFLAGS) $(EXTRA_CPPFLAGS) $< -o $@
73
74 # --- #
75 # UIC #
76 # --- #
77
78 %.ui.hpp: %.ui
79         $(AM_V_GEN)$(UIC) $< -o $@
80
81 %.ui.hh: %.ui
82         $(AM_V_GEN)$(UIC) $< -o $@
83
84 %.ui.h: %.ui
85         $(AM_V_GEN)$(UIC) $< -o $@
86
87 # --- #
88 # RCC #
89 # --- #
90
91 %.qrc.cpp: %.qrc
92         $(AM_V_GEN)$(RCC) -name `echo "$<" | sed 's|^.*/\(.*\)\.qrc$$|\1|'` $< -o $@
93
94 %.qrc.cc: %.qrc
95         $(AM_V_GEN)$(RCC) -name `echo "$<" | sed 's|^.*/\(.*\)\.qrc$$|\1|'` $< -o $@
96
97 %.qrc.cxx: %.qrc
98         $(AM_V_GEN)$(RCC) -name `echo "$<" | sed 's|^.*/\(.*\)\.qrc$$|\1|'` $< -o $@
99
100 %.qrc.C: %.qrc
101         $(AM_V_GEN)$(RCC) -name `echo "$<" | sed 's|^.*/\(.*\)\.qrc$$|\1|'` $< -o $@