Contents of /trunk/data/Makefile.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 322 - (show annotations)
Mon Dec 21 16:13:51 2009 UTC (14 years, 5 months ago) by harbaum
File size: 2359 byte(s)
List handling improved
1 TEMPLATE_ELEMSTYLES=elemstyles-mapnik.xml
2 APP = @PACKAGE@
3 MAEMO_VERSION_MAJOR = @MAEMO_VERSION_MAJOR@
4 prefix = @prefix@
5 datarootdir = @datarootdir@
6 datadir = @datarootdir@
7
8 all: $(TEMPLATE_ELEMSTYLES)
9
10 elemstyles-mapnik.xml: elemstyles-mapnik.xml.in
11 perl ./compose-elemstyles.pl 0.4 '#f2eee8' $+ > $@.tmp
12 mv $@.tmp $@
13
14 clean:
15 rm -f $(TEMPLATE_ELEMSTYLES)
16
17 install-debian:
18 install -d $(DESTDIR)$(datadir)/applications
19 install $(APP)-ubuntu.desktop $(DESTDIR)$(datadir)/applications/$(APP).desktop
20 for s in 64 32 22 16; do \
21 install -d $(DESTDIR)$(datadir)/icons/hicolor/$${s}x$${s}/apps ;\
22 install -m 644 $(APP).$$s.png $(DESTDIR)$(datadir)/icons/hicolor/$${s}x$${s}/apps/$(APP).png ;\
23 done
24 install -d $(DESTDIR)$(datadir)/icons/hicolor/scalable/apps
25 install -m 644 $(APP).svg $(DESTDIR)$(datadir)/icons/hicolor/scalable/apps/$(APP).svg
26
27
28 install-maemo:
29 # on maemo datadir may not point to the place where the system is
30 # expecting the icons. thus we hardcode the /share path
31 install -d $(DESTDIR)$(prefix)/share/applications/hildon
32 install $(APP).desktop $(DESTDIR)$(prefix)/share/applications/hildon
33 for s in 40 26; do \
34 install -d $(DESTDIR)$(prefix)/share/icons/hicolor/$${s}x$${s}/hildon ;\
35 install -m 644 $(APP).$$s.png $(DESTDIR)$(prefix)/share/icons/hicolor/$${s}x$${s}/hildon/$(APP).png ;\
36 done
37 # .png file in scalable? Maemo is strange...
38 install -d $(DESTDIR)$(prefix)/share/icons/hicolor/scalable/hildon
39 install -m 644 $(APP).64.png $(DESTDIR)$(prefix)/share/icons/hicolor/scalable/hildon/$(APP).png
40 if [ $(MAEMO_VERSION_MAJOR) -ge 5 ]; then \
41 echo "Installing backup configuration for maemo >= 5"; \
42 install -d $(DESTDIR)/etc/osso-backup/applications ;\
43 install $(APP).conf $(DESTDIR)/etc/osso-backup/applications ;\
44 fi
45
46 install: @INSTALL_PLATTFORM@ $(TEMPLATE_ELEMSTYLES)
47 install -d $(DESTDIR)$(datadir)/$(APP)
48 install -m 644 COPYING $(DESTDIR)$(datadir)/$(APP)
49 install -m 644 *.txt $(DESTDIR)$(datadir)/$(APP)
50 install -m 644 *.xml $(DESTDIR)$(datadir)/$(APP)
51 install -m 644 *.style $(DESTDIR)$(datadir)/$(APP)
52 for f in `find icons -name "*.png"`; do \
53 install -d $(DESTDIR)$(datadir)/$(APP)/`dirname $$f` ;\
54 install -m 644 $$f $(DESTDIR)$(datadir)/$(APP)/$$f ;\
55 done;
56 install -d $(DESTDIR)$(datadir)/$(APP)/demo
57 install -m 644 demo/* $(DESTDIR)$(datadir)/$(APP)/demo
58
59 distclean: clean