# # Makefile for Hermes: Contacts Updated # (c) Andrew Flegg 2009. Released under the Artistic Licence. DEBVERS := $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p') compile: #perl -pi -e "s/(WimpWorks\.__init__.*?version\s*=\s*)['\"].*?['\"]/\1'${DEBVERS}'/" src/org/maemo/wifi-assistant/gui/gtkui.py perl -ni -e 'print; exit if /^XB-Maemo-Icon-26:$$/' debian/control uuencode -m share/wifi-assistant-48.png - | perl -ne 'print " $$_" unless $$. == 1 or /^====$$/' >>debian/control py_compilefiles `find src -type f -name '*.py'` #cd po && $(MAKE) compile mkdir bin install: mkdir -p ${DESTDIR}/opt/wifi-assistant/lib ${DESTDIR}/opt/wifi-assistant/bin ${DESTDIR}/opt/wifi-assistant/share ln -s ../lib/config-gui.py ${DESTDIR}/opt/wifi-assistant/bin/wifi-assistant cp -r src/* ${DESTDIR}/opt/wifi-assistant/lib/ chown -R root:root ${DESTDIR}/opt/wifi-assistant/lib/ install -D -m 0644 -o root -g root src/*.py* ${DESTDIR}/opt/wifi-assistant/lib/ install -D -m 0644 -o root -g root share/wifi-assistant-64.png ${DESTDIR}/usr/share/icons/hicolor/scalable/hildon/wifi-assistant.png install -D -m 0644 -o root -g root share/wifi-assistant-48.png ${DESTDIR}/usr/share/icons/hicolor/48x48/hildon/wifi-assistant.png install -D -m 0644 -o root -g root share/wifi-assistant.desktop ${DESTDIR}/usr/share/applications/hildon/wifi-assistant.desktop install -D -m 0644 -o root -g root share/wifi-assistant.service ${DESTDIR}/usr/share/dbus-1/services/wifi-assistant.service chmod 755 ${DESTDIR}/opt/wifi-assistant/lib/config-gui.py #cd po && $(MAKE) install clean: rm -f `find src -type f -name '*.pyo' -o -name '*.pyc'` rm -f build-stamp configure-stamp rm -rf debian/wifi-assistant bin find . -name *~ -exec rm -f {} \; #cd po && $(MAKE) clean package: dpkg-buildpackage -rfakeroot -uc -us