InfoBoxes/Content/Altitude.cpp: Flight Level InfoBox uses pressure altitude if availa...
[xcsoar.git] / debian / rules
blob78a562e2b7a62bd3f92e46650896ce62154e9048
1 #!/usr/bin/make -f
2 # -*- mode: makefile; coding: utf-8 -*-
4 CFLAGS = -Wall -g
5 OPTIONS = TARGET=UNIX FIXED=n GREEN_MENU=n OPENGL=y
7 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
8 CFLAGS += -O0
9 OPTIONS += DEBUG=y
10 else
11 CFLAGS += -O2 -fno-strict-aliasing
12 OPTIONS += DEBUG=n
13 endif
15 OPTIONS += -j8
17 build: debian/stamp-build
18 debian/stamp-build:
19 dh_testdir
21 $(MAKE) $(OPTIONS) all mo manual
23 touch $@
25 clean:
26 dh_testdir
27 dh_testroot
28 rm -f debian/stamp-*
30 $(MAKE) $(OPTIONS) clean
32 dh_clean
34 install: debian/stamp-install
35 debian/stamp-install: debian/stamp-build
36 dh_testdir
37 dh_testroot
38 dh_clean -k
39 dh_installdirs
41 $(MAKE) $(OPTIONS) install DESTDIR=`pwd`/debian/tmp
43 touch $@
45 # Build architecture-independent files here.
46 binary-indep:
48 # Build architecture-dependent files here.
49 binary-arch: build install
50 dh_testdir -a
51 dh_testroot -a
52 dh_installdocs -a
53 dh_installchangelogs -a
54 dh_install -a --sourcedir=debian/tmp
55 dh_link -a
56 dh_strip -a
57 dh_compress -a -X.pdf
58 dh_fixperms -a
59 dh_installdeb -a
60 dh_shlibdeps -a
61 dh_gencontrol -a
62 dh_md5sums -a
63 dh_builddeb -a
65 source diff:
66 @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
68 binary: binary-indep binary-arch
69 .PHONY: build clean binary-indep binary-arch binary install