Add v0.0.1 of Hermes from source tarball
[hermes] / package / Makefile
1 compile:
2         py_compilefiles src/*.py
3         mkdir bin
4         gcc -o bin/contact-update -std=c99 `pkg-config --cflags --libs libebook-1.2 glib-2.0` src/contact-update.c
5
6 install:
7         mkdir -p ${DESTDIR}/opt/hermes/lib ${DESTDIR}/opt/hermes/bin
8         ln -s ../lib/gui.py ${DESTDIR}/opt/hermes/bin/hermes
9         install -D -m 0755 -o root -g root bin/contact-update ${DESTDIR}/opt/hermes/bin/contact-update
10         install -D -m 0644 -o root -g root src/*.py* ${DESTDIR}/opt/hermes/lib/
11         install -D -m 0644 -o root -g root share/hermes-64.png ${DESTDIR}/usr/share/icons/hicolor/scalable/hermes.png
12         install -D -m 0644 -o root -g root share/hermes-48.png ${DESTDIR}/usr/share/icons/hicolor/48x48/hermes.png
13         install -D -m 0644 -o root -g root share/hermes.desktop ${DESTDIR}/usr/share/applications/hildon/hermes.desktop
14         install -D -m 0644 -o root -g root share/hermes.service ${DESTDIR}/usr/share/dbus-1/services/hermes.service
15         chmod 755 ${DESTDIR}/opt/hermes/lib/gui.py
16
17 clean:
18         rm -f src/*.py[oc]
19         rm -f build-stamp configure-stamp
20         rm -rf debian/hermes bin
21         find . -name *~ -exec rm -f {} \;