Update model with changed binary file size setting immediately
[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 SUBDIRS =                                                               \
21         icons                                                           \
22         pixmaps                                                         \
23         po                                                              \
24         thunarx                                                         \
25         thunar                                                          \
26         docs                                                            \
27         examples                                                        \
28         plugins
29
30 distclean-local:
31         rm -rf *.cache *~
32
33 distuninstallcheck_listfiles =                                          \ 
34         find . -type f -print | grep -v ./share/icons/hicolor/icon-theme.cache
35
36 .PHONY: ChangeLog
37
38 ChangeLog: Makefile
39         (GIT_DIR=$(top_srcdir)/.git git log > .changelog.tmp \
40         && mv .changelog.tmp ChangeLog; rm -f .changelog.tmp) \
41         || (touch ChangeLog; echo 'Git directory not found: installing possibly empty changelog.' >&2)
42
43 dist-hook: ChangeLog
44
45 thunar_scriptsdir = $(HELPER_PATH_PREFIX)/Thunar
46 thunar_scripts_SCRIPTS =                                                \
47         ThunarBulkRename
48
49 ThunarBulkRename: ThunarBulkRename.in Makefile
50         $(AM_V_GEN) (                                                   \
51                 rm -f ThunarBulkRename.gen ThunarBulkRename             \
52                 && $(SED) -e "s,\@bindir\@,$(bindir),g"                         \
53                         < $(srcdir)/ThunarBulkRename.in                 \
54                         > ThunarBulkRename.gen                          \
55                 && mv ThunarBulkRename.gen ThunarBulkRename             \
56         )
57
58 desktopdir = $(datadir)/applications
59 desktop_in_in_files =                                                   \
60         Thunar.desktop.in.in                                            \
61         Thunar-bulk-rename.desktop.in.in                                \
62         Thunar-folder-handler.desktop.in.in
63 desktop_in_files = $(desktop_in_in_files:.desktop.in.in=.desktop.in)
64 %.desktop.in: %.desktop.in.in
65         $(AM_V_GEN) $(SED) -e "s,\@HELPERDIR\@,$(HELPER_PATH_PREFIX),g" < $< > $@
66 desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
67 @INTLTOOL_DESKTOP_RULE@
68
69 if HAVE_DBUS
70 servicedir = $(datadir)/dbus-1/services
71 service_in_files = org.xfce.FileManager.service.in org.xfce.Thunar.service.in
72 service_DATA = $(service_in_files:.service.in=.service)
73 %.service: %.service.in
74         $(AM_V_GEN) $(SED) -e "s,\@bindir\@,$(bindir),g" < $< > $@
75 endif
76
77 EXTRA_DIST =                                                            \
78         FAQ                                                             \
79         HACKING                                                         \
80         ThunarBulkRename.in                                             \
81         intltool-extract.in                                             \
82         intltool-merge.in                                               \
83         intltool-update.in                                              \
84         $(desktop_in_in_files)                                          \
85         $(service_in_files)
86
87 DISTCLEANFILES =                                                        \
88         ThunarBulkRename                                                \
89         intltool-extract                                                \
90         intltool-merge                                                  \
91         intltool-update                                                 \
92         $(desktop_in_files)                                             \
93         $(desktop_DATA)                                                 \
94         $(service_DATA)
95
96 DISTCHECK_CONFIGURE_FLAGS =                                             \
97         --enable-gtk-doc                                                \
98         --enable-gen-doc