47ebcbedfac3748825ebb558e8b0cf2a8cd698fa
[livewp] / applet / data / Makefile.am
1 #
2 # This file is part of live wallpaper 
3 #
4 # Copyright (C) 2010 Vlad Vasiliev
5 # Copyright (C) 2010 Tanya Makova
6 #
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2 of the License, or
10 # (at your option) any later version.
11 #
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 # GNU General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License along
18 # with this program; if not, write to the Free Software Foundation, Inc.,
19 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 #
21  
22 berlinthemedir = $(datadir)/livewp/theme/Berlin
23 berlintheme_DATA = theme/Berlin/* 
24
25 modernthemedir = $(datadir)/livewp/theme/Modern
26 moderntheme_DATA = theme/Modern/*  
27
28 matrixthemedir = $(datadir)/livewp/theme/Matrix
29 matrixtheme_DATA = theme/Matrix/* 
30
31 accelthemedir = $(datadir)/livewp/theme/Accel
32 acceltheme_DATA = theme/Accel/* 
33
34 videothemedir = $(datadir)/livewp/theme/Video
35 videotheme_DATA = theme/Video/* 
36
37 xsnowthemedir = $(datadir)/livewp/theme/Xsnow
38 xsnowtheme_DATA = theme/Xsnow/* 
39
40 externalthemedir = $(datadir)/livewp/external_themes
41 externaltheme_DATA = external_themes/* 
42
43 dbus_servicedir = $(datadir)/dbus-1/services
44 dbus_service_DATA = org.maemo.livewp.service
45
46
47 desktoppaneldir    = $(datadir)/applications/hildon-control-panel
48 desktoppanel_files = livewp.desktop
49 desktoppanel_DATA  = $(desktoppanel_files)
50
51 # The icons
52
53 icondir = $(datadir)/icons/hicolor
54
55 install-data-local:
56         i=livewp; \
57         $(mkinstalldirs) $(DESTDIR)$(icondir)/26x26/hildon; \
58         $(mkinstalldirs) $(DESTDIR)$(icondir)/40x40/hildon; \
59         $(mkinstalldirs) $(DESTDIR)$(icondir)/scalable/hildon; \
60         $(INSTALL_DATA) $(srcdir)/icons/$$i.26.png $(DESTDIR)$(icondir)/26x26/hildon/$$i.png; \
61         $(INSTALL_DATA) $(srcdir)/icons/$$i.40.png $(DESTDIR)$(icondir)/40x40/hildon/$$i.png; \
62         $(INSTALL_DATA) $(srcdir)/icons/$$i.40.png $(DESTDIR)$(icondir)/scalable/hildon/$$i.png;
63
64 uninstall-local:
65         i=livewp; \
66         rm $(DESTDIR)$(icondir)/26x26/hildon/$$i.png; \
67         rm $(DESTDIR)$(icondir)/40x40/hildon/$$i.png; \
68         $(DESTDIR)$(icondir)/scalable/hildon/$$i.png;
69
70
71 EXTRA_DIST = $(berlintheme_DATA) \
72              $(moderntheme_DATA) \
73              $(matrixtheme_DATA) \
74              $(acceltheme_DATA) \
75              $(videotheme_DATA) \
76              $(xshowtheme_DATA) \
77              $(externaltheme_DATA) \
78              $(dbus_service_DATA)
79
80
81 livewp.desktop: livewp.desktop.in
82         sed "s/__VERSION__/$(VERSION)/g" $< >$@.tmp && \
83         sed "s/__PACKAGE__/$(PACKAGE)/g" $@.tmp >$@ && \
84         $(RM) *.tmp
85