Contents of /trunk/data/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 41 - (show annotations)
Tue Jan 20 16:50:14 2009 UTC (15 years, 4 months ago) by harbaum
File size: 796 byte(s)
Enable "make install" for desktop
1 TEMPLATE_ELEMSTYLES=elemstyles-mapnik.xml
2 APP = osm2go
3 PREFIX = /usr/local
4
5 all: $(TEMPLATE_ELEMSTYLES)
6
7 elemstyles-mapnik.xml: elemstyles-mapnik.xml.in
8 perl ./compose-elemstyles.pl 0.4 '#f2eee8' $+ > $@.tmp
9 mv $@.tmp $@
10
11 clean:
12 rm -f $(TEMPLATE_ELEMSTYLES)
13
14 install: $(TEMPLATE_ELEMSTYLES)
15 install $(APP)-ubuntu.desktop $(DESTDIR)$(PREFIX)/share/applications/$(APP).desktop
16 install $(APP).64.png $(DESTDIR)$(PREFIX)/share/pixmaps/$(APP).png
17 install -d $(DESTDIR)$(PREFIX)/share/$(APP)
18 install -m 644 *.txt $(DESTDIR)$(PREFIX)/share/$(APP)
19 install -m 644 *.xml $(DESTDIR)$(PREFIX)/share/$(APP)
20 install -m 644 *.style $(DESTDIR)$(PREFIX)/share/$(APP)
21 for f in `find icons -name "*.png"`; do \
22 install -D -m 644 $$f $(DESTDIR)$(PREFIX)/share/$(APP)/$$f ; \
23 done;
24
25
26 distclean: clean