Bah, install breaks mymind
[hermes] / package / Makefile
1 #
2 # Makefile for Hermes: Contacts Updated
3 # (c) Andrew Flegg 2009. Released under the Artistic Licence.
4
5 compile:
6         perl -ni -e 'print; exit if /^XB-Maemo-Icon-26:$$/' debian/control
7         uuencode -m share/hermes-48.png - | perl -ne 'print " $$_" unless $$. == 1 or /^====$$/' >>debian/control
8         py_compilefiles src/*.py
9         mkdir bin
10
11 install:
12         mkdir -p ${DESTDIR}/opt/hermes/lib ${DESTDIR}/opt/hermes/bin ${DESTDIR}/opt/hermes/share
13         ln -s ../lib/gui.py ${DESTDIR}/opt/hermes/bin/hermes
14         install -D -m 0644 -o root -g root src/*.py* ${DESTDIR}/opt/hermes/lib/
15         install -D -m 0644 -o root -g root share/account-*.png share/background.png ${DESTDIR}/opt/hermes/share/
16         install -D -m 0644 -o root -g root share/hermes-64.png ${DESTDIR}/usr/share/icons/hicolor/scalable/hildon/hermes.png
17         install -D -m 0644 -o root -g root share/hermes-48.png ${DESTDIR}/usr/share/icons/hicolor/48x48/hildon/hermes.png
18         install -D -m 0644 -o root -g root share/hermes.desktop ${DESTDIR}/usr/share/applications/hildon/hermes.desktop
19         install -D -m 0644 -o root -g root share/hermes.service ${DESTDIR}/usr/share/dbus-1/services/hermes.service
20         chmod 755 ${DESTDIR}/opt/hermes/lib/gui.py
21
22 clean:
23         rm -f src/*.py[oc]
24         rm -f build-stamp configure-stamp
25         rm -rf debian/hermes bin
26         find . -name *~ -exec rm -f {} \;