Update radar_window.edit_profile() to handle profile_dialog exception
[wifi-radar.git] / Makefile
blob8438cd2576f618df8fbac54a6d593e05d802c69d
2 # Makefile for WiFi Radar
5 SHELL = /bin/sh
8 # These settings are what I would expect for most modern Linux distros,
9 # and are what work for me unmodified on Ubuntu. -BEF-
11 package = wifi-radar
12 sbindir = $(DESTDIR)/sbin
13 initdir = $(DESTDIR)/etc/init.d
14 sysconfdir = $(DESTDIR)/etc/
15 mandir = $(DESTDIR)/share/man
16 pixmapsdir = $(DESTDIR)/share/pixmaps
17 appsdir = $(DESTDIR)/share/applications
19 srcdir = .
20 top_srcdir = .
21 top_builddir = .
23 VERSION = $(shell cat $(srcdir)/docs/VERSION)
25 TOPDIR := $(CURDIR)
28 .PHONY: all
29 all: wifi-radar.localized
31 .PHONY: install
32 install: all
33 test -d ${sysconfdir} || install -d -m 755 ${sysconfdir}
35 test -d ${sbindir} || install -d -m 755 ${sbindir}
36 install -m 755 wifi-radar.localized ${sbindir}/wifi-radar
38 test -d ${mandir}/man1 || install -d -m 755 ${mandir}/man1
39 install -m 644 wifi-radar.1 ${mandir}/man1
41 test -d ${mandir}/man5 || install -d -m 755 ${mandir}/man5
42 install -m 644 wifi-radar.conf.5 ${mandir}/man5
44 test -d ${pixmapsdir} || install -d -m 755 ${pixmapsdir}
45 install -m 644 pixmaps/wifi-radar.svg ${pixmapsdir}
46 install -m 644 pixmaps/wifi-radar.png ${pixmapsdir}
48 test -d ${appsdir} || install -d -m 755 ${appsdir}
49 install -m 644 wifi-radar.desktop ${appsdir}
52 wifi-radar.localized: wifi-radar
53 cp wifi-radar wifi-radar.tmp
54 perl -pi -e 's#^WIFI_RADAR_VERSION\s+=.*#WIFI_RADAR_VERSION = "${VERSION}"#' wifi-radar.tmp
55 perl -pi -e 's#^CONF_FILE\s+=.*#CONF_FILE = "${sysconfdir}/wifi-radar.conf"#' wifi-radar.tmp
56 mv wifi-radar.tmp wifi-radar.localized
58 .PHONY: tarball
59 tarball: $(TOPDIR)/tmp/${package}-$(VERSION).tar.bz2.sign
61 $(TOPDIR)/tmp/${package}-$(VERSION).tar.bz2.sign: $(TOPDIR)/tmp/${package}-$(VERSION).tar.bz2
62 cd $(TOPDIR)/tmp && gpg --detach-sign -a --output ${package}-$(VERSION).tar.bz2.asc ${package}-$(VERSION).tar.bz2
63 cd $(TOPDIR)/tmp && gpg --verify ${package}-$(VERSION).tar.bz2.asc
65 $(TOPDIR)/tmp/${package}-$(VERSION).tar.bz2:
66 rm -fr $(TOPDIR)/tmp
67 mkdir -p $(TOPDIR)/tmp/
68 git archive --format=tar --prefix=${package}-$(VERSION)/ master | (cd $(TOPDIR)/tmp/ && tar xf -)
69 git log > $(TOPDIR)/tmp/${package}-$(VERSION)/docs/CHANGELOG
70 find $(TOPDIR)/tmp/${package}-$(VERSION) -type f -exec chmod ug+r {} \;
71 find $(TOPDIR)/tmp/${package}-$(VERSION) -type d -exec chmod ug+rx {} \;
72 chmod 755 $(TOPDIR)/tmp/${package}-$(VERSION)/wifi-radar
73 cd $(TOPDIR)/tmp && tar -ch ${package}-$(VERSION) | bzip2 > ${package}-$(VERSION).tar.bz2
74 ls -l $(TOPDIR)/tmp/
76 dev-docs:
77 ~/inprogress/HappyDoc3-r3_1/happydoc -d docs/developer/ wifi-radar.py
79 .PHONY: clean
80 clean:
81 rm -f wifi-radar.localized
82 rm -fr tmp/
84 .PHONY: distclean
85 distclean: clean