]> git.gag.com Git - fw/altos/blob - debian/rules
altos: Remove legacy telemetry from ao_monitor when not needed
[fw/altos] / debian / rules
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3
4 export DH_VERBOSE=1
5 PKG_VERSION := $(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)/\1/p')
6 DEB_VERSION := $(shell if [ -x /usr/bin/git ]; then git describe; else echo 0; fi | tr - +)
7
8 # this target invoked by git-buildpackage using a clean hook, see .gbp.conf
9 prebuild:
10         echo $(DEB_VERSION)
11         git-dch --release --new-version=$(DEB_VERSION) --multimaint-merge
12         git log > ChangeLog
13         git commit -n ChangeLog debian/changelog \
14                 -m "update changelogs for Debian build"
15 #       git tag debian/$(DEB_VERSION)
16 #       git push --tags origin master
17
18 configure: configure-stamp
19 configure-stamp:
20         dh_testdir
21         ./autogen.sh --prefix=/usr
22         touch configure-stamp
23
24 build: build-arch build-indep
25 build-arch: build-stamp
26 build-indep: build-stamp
27
28 build-stamp: configure-stamp  
29         dh_testdir
30         $(MAKE) VERSION=$(PKG_VERSION)
31         (cd doc ; $(MAKE))
32         touch $@
33
34 clean: 
35         dh_testdir
36         dh_testroot
37         rm -f build-stamp configure-stamp
38         [ ! -f Makefile ] || $(MAKE) distclean
39         dh_clean 
40
41 install: build
42         dh_testdir
43         dh_testroot
44         dh_prep  
45         dh_installdirs
46
47         $(MAKE) DESTDIR=$(CURDIR)/debian/altos install
48         sed -i "/dependency_libs/ s/'.*'/''/" `find debian/altos/usr/lib/altos/ -name '*.la'`
49
50 binary-indep: install
51
52 binary-arch: install
53         dh_testdir
54         dh_testroot
55         dh_installchangelogs ChangeLog
56         dh_installdocs
57         dh_installexamples
58         dh_install
59         ln -s /usr/share/altos/themes/background.png \
60                 debian/altos/usr/share/gdm/themes/altusmetrum/background.png
61         ln -s /usr/share/altos/themes/background.png \
62                 debian/altos/usr/share/slim/themes/altusmetrum/background.png
63         dh_installmenu
64 #       dh_installdebconf
65 #       dh_installlogrotate
66 #       dh_installemacsen
67 #       dh_installpam
68 #       dh_installmime
69 #       dh_python
70 #       dh_installinit
71 #       dh_installcron
72 #       dh_installinfo
73         dh_installman
74         dh_link
75         dh_strip
76         dh_compress
77         dh_fixperms
78 #       dh_perl
79 #       dh_makeshlibs
80         dh_installdeb
81         dh_shlibdeps
82         dh_gencontrol
83         dh_md5sums
84         dh_builddeb
85
86 binary: binary-indep binary-arch
87 .PHONY: build clean binary-indep binary-arch binary install configure