Contents of /trunk/data/Makefile.in

Parent Directory Parent Directory | Revision Log Revision Log


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