Git Repositories

I18n: Update translation lt (100%).
[thunar.git] / Makefile.am
1 # vi:set ts=8 sw=8 noet ai nocindent syntax=automake:
2 # -
3 # Copyright (c) 2010 Jannis Pohlmann <jannis@xfce.org>
4
5 # This program is free software; you can redistribute it and/or 
6 # modify it under the terms of the GNU General Public License as
7 # published by the Free Software Foundation; either version 2 of 
8 # 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 
16 # License along with this program; if not, write to the Free 
17 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 # Boston, MA 02110-1301, USA.
19
20 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
21
22 SUBDIRS =                                                               \
23         icons                                                           \
24         pixmaps                                                         \
25         po                                                              \
26         thunarx                                                         \
27         thunar                                                          \
28         docs                                                            \
29         examples                                                        \
30         plugins
31
32 distclean-local:
33         rm -rf *.cache *~
34         find . -type f -name Makefile -delete
35         find . -type f -name Makefile.in -delete
36
37 distuninstallcheck_listfiles =                                          \
38         find . -type f -print | grep -v ./share/icons/hicolor/icon-theme.cache
39
40 .PHONY: ChangeLog
41
42 ChangeLog: Makefile
43         (GIT_DIR=$(top_srcdir)/.git git log > .changelog.tmp \
44         && mv .changelog.tmp ChangeLog; rm -f .changelog.tmp) \
45         || (touch ChangeLog; echo 'Git directory not found: installing possibly empty changelog.' >&2)
46
47 dist-hook: ChangeLog
48
49 thunar_scriptsdir = $(HELPER_PATH_PREFIX)/Thunar
50 thunar_scripts_SCRIPTS =                                                \
51         ThunarBulkRename
52
53 ThunarBulkRename: ThunarBulkRename.in Makefile
54         $(AM_V_GEN) (                                                   \
55                 rm -f ThunarBulkRename.gen ThunarBulkRename             \
56                 && $(SED) -e "s,\@bindir\@,$(bindir),g"                         \
57                         < $(srcdir)/ThunarBulkRename.in                 \
58                         > ThunarBulkRename.gen                          \
59                 && mv ThunarBulkRename.gen ThunarBulkRename             \
60         )
61
62 desktopdir = $(datadir)/applications
63 desktop_in_in_files =                                                   \
64         Thunar.desktop.in.in                                            \
65         Thunar-bulk-rename.desktop.in.in                                \
66         Thunar-folder-handler.desktop.in.in
67 desktop_in_files = $(desktop_in_in_files:.desktop.in.in=.desktop.in)
68 %.desktop.in: %.desktop.in.in
69         $(AM_V_GEN) $(SED) -e "s,\@HELPERDIR\@,$(HELPER_PATH_PREFIX),g" < $< > $@
70 desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
71 @INTLTOOL_DESKTOP_RULE@
72
73 #
74 # .appdata
75 #
76 @INTLTOOL_XML_RULE@
77 appdatadir = $(datadir)/appdata
78 appdata_DATA = $(appdata_in_files:.xml.in=.xml)
79 appdata_in_files = thunar.appdata.xml.in
80
81 if HAVE_DBUS
82 servicedir = $(datadir)/dbus-1/services
83 service_in_files = org.xfce.FileManager.service.in org.xfce.Thunar.service.in
84 service_DATA = $(service_in_files:.service.in=.service)
85 %.service: %.service.in
86         $(AM_V_GEN) $(SED) -e "s,\@bindir\@,$(bindir),g" < $< > $@
87 endif
88
89 polkit_policydir = $(datadir)/polkit-1/actions
90 polkit_in_in_files =                    \
91         org.xfce.thunar.policy.in.in
92 polkit_in_files = $(polkit_in_in_files:.policy.in.in=.policy.in)
93 %.policy.in: %.policy.in.in
94         sed -e "s,\@bindir\@,$(bindir),g" < $< > $@
95 polkit_policy_DATA = $(polkit_in_files:.policy.in=.policy)
96 @INTLTOOL_POLICY_RULE@
97
98 EXTRA_DIST =                                                            \
99         FAQ                                                             \
100         HACKING                                                         \
101         ThunarBulkRename.in                                             \
102         intltool-extract.in                                             \
103         intltool-merge.in                                               \
104         intltool-update.in                                              \
105         $(desktop_in_in_files)                                          \
106         $(service_in_files)                                             \
107         $(appdata_in_files)                                             \
108         $(polkit_in_in_files)
109
110 CLEANFILES              = $(appdata_DATA)
111
112 DISTCLEANFILES =                                                        \
113         ThunarBulkRename                                                \
114         intltool-extract                                                \
115         intltool-merge                                                  \
116         intltool-update                                                 \
117         $(desktop_in_files)                                             \
118         $(desktop_DATA)                                                 \
119         $(service_DATA)                                                 \
120         $(polkit_in_files)                                              \
121         $(polkit_policy_DATA)
122
123 DISTCHECK_CONFIGURE_FLAGS =                                             \
124         --enable-gtk-doc                                                \
125         --enable-gen-doc