1 |
#!/usr/bin/make -f |
2 |
# -*- makefile -*- |
3 |
# Sample debian/rules that uses debhelper. |
4 |
# This file was originally written by Joey Hess and Craig Small. |
5 |
# As a special exception, when this file is copied by dh-make into a |
6 |
# dh-make output file, you may use that output file without restriction. |
7 |
# This special exception was added by Craig Small in version 0.37 of dh-make. |
8 |
|
9 |
# Uncomment this to turn on verbose mode. |
10 |
#export DH_VERBOSE=1 |
11 |
|
12 |
CFLAGS = -Wall -g |
13 |
|
14 |
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) |
15 |
CFLAGS += -O0 |
16 |
else |
17 |
CFLAGS += -O2 |
18 |
endif |
19 |
|
20 |
%: |
21 |
dh $@ |
22 |
|
23 |
override_dh_auto_configure: |
24 |
ifneq "$(wildcard /usr/share/misc/config.sub)" "" |
25 |
cp -f /usr/share/misc/config.sub config.sub |
26 |
endif |
27 |
ifneq "$(wildcard /usr/share/misc/config.guess)" "" |
28 |
cp -f /usr/share/misc/config.guess config.guess |
29 |
endif |
30 |
dh_auto_configure |
31 |
|
32 |
override_dh_auto_build: |
33 |
dh_auto_build |
34 |
$(MAKE) -C $(CURDIR)/doc docs |
35 |
|
36 |
override_dh_strip: |
37 |
dh_strip --dbg-package=libmimetic0-dbg |
38 |
|
39 |
override_dh_compress: |
40 |
dh_compress -Xexamples |
41 |
|
42 |
override_dh_makeshlibs: |
43 |
dh_makeshlibs -Xdebug |