renatofilho@905
|
1 |
#!/usr/bin/make -f
|
renatofilho@905
|
2 |
# -*- makefile -*-
|
renatofilho@905
|
3 |
# Sample debian/rules that uses debhelper.
|
renatofilho@905
|
4 |
# This file was originally written by Joey Hess and Craig Small.
|
renatofilho@905
|
5 |
# As a special exception, when this file is copied by dh-make into a
|
renatofilho@905
|
6 |
# dh-make output file, you may use that output file without restriction.
|
renatofilho@905
|
7 |
# This special exception was added by Craig Small in version 0.37 of dh-make.
|
renatofilho@905
|
8 |
|
renatofilho@905
|
9 |
# Uncomment this to turn on verbose mode.
|
renatofilho@905
|
10 |
#export DH_VERBOSE=1
|
renatofilho@905
|
11 |
|
renatofilho@905
|
12 |
|
renatofilho@905
|
13 |
# These are used for cross-compiling and for saving the configure script
|
renatofilho@905
|
14 |
# from having to guess our platform (since we know it already)
|
renatofilho@905
|
15 |
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
|
renatofilho@905
|
16 |
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
|
renatofilho@905
|
17 |
|
renatofilho@905
|
18 |
|
renatofilho@905
|
19 |
CFLAGS = -Wall -g
|
renatofilho@905
|
20 |
|
renatofilho@905
|
21 |
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
|
renatofilho@905
|
22 |
CFLAGS += -O0
|
renatofilho@905
|
23 |
else
|
renatofilho@905
|
24 |
CFLAGS += -O2
|
renatofilho@905
|
25 |
endif
|
renatofilho@905
|
26 |
|
renatofilho@905
|
27 |
config.status: configure
|
renatofilho@905
|
28 |
dh_testdir
|
renatofilho@905
|
29 |
# Add here commands to configure the package.
|
renatofilho@905
|
30 |
./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
|
renatofilho@905
|
31 |
|
renatofilho@905
|
32 |
|
renatofilho@905
|
33 |
build: build-stamp
|
renatofilho@905
|
34 |
|
renatofilho@905
|
35 |
build-stamp: config.status
|
renatofilho@905
|
36 |
dh_testdir
|
renatofilho@905
|
37 |
|
renatofilho@905
|
38 |
# Add here commands to compile the package.
|
renatofilho@905
|
39 |
$(MAKE)
|
renatofilho@905
|
40 |
#docbook-to-man debian/gmencoder.sgml > gmencoder.1
|
renatofilho@905
|
41 |
|
renatofilho@905
|
42 |
touch $@
|
renatofilho@905
|
43 |
|
renatofilho@905
|
44 |
clean:
|
renatofilho@905
|
45 |
dh_testdir
|
renatofilho@905
|
46 |
dh_testroot
|
renatofilho@905
|
47 |
rm -f build-stamp
|
renatofilho@905
|
48 |
|
renatofilho@905
|
49 |
# Add here commands to clean up after the build process.
|
renatofilho@905
|
50 |
-$(MAKE) distclean
|
renatofilho@905
|
51 |
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
|
renatofilho@905
|
52 |
cp -f /usr/share/misc/config.sub config.sub
|
renatofilho@905
|
53 |
endif
|
renatofilho@905
|
54 |
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
|
renatofilho@905
|
55 |
cp -f /usr/share/misc/config.guess config.guess
|
renatofilho@905
|
56 |
endif
|
renatofilho@905
|
57 |
|
renatofilho@905
|
58 |
|
renatofilho@905
|
59 |
dh_clean
|
renatofilho@905
|
60 |
|
renatofilho@905
|
61 |
install: build
|
renatofilho@905
|
62 |
dh_testdir
|
renatofilho@905
|
63 |
dh_testroot
|
renatofilho@905
|
64 |
dh_clean -k
|
renatofilho@905
|
65 |
dh_installdirs
|
renatofilho@905
|
66 |
|
renatofilho@905
|
67 |
# Add here commands to install the package into debian/gmencoder.
|
renatofilho@905
|
68 |
$(MAKE) DESTDIR=$(CURDIR)/debian/gmencoder install
|
renatofilho@905
|
69 |
|
renatofilho@905
|
70 |
|
renatofilho@905
|
71 |
# Build architecture-independent files here.
|
renatofilho@905
|
72 |
binary-indep: build install
|
renatofilho@905
|
73 |
# We have nothing to do by default.
|
renatofilho@905
|
74 |
|
renatofilho@905
|
75 |
# Build architecture-dependent files here.
|
renatofilho@905
|
76 |
binary-arch: build install
|
renatofilho@905
|
77 |
dh_testdir
|
renatofilho@905
|
78 |
dh_testroot
|
renatofilho@905
|
79 |
dh_installchangelogs ChangeLog
|
renatofilho@905
|
80 |
dh_installdocs
|
renatofilho@905
|
81 |
dh_installexamples
|
renatofilho@905
|
82 |
dh_install
|
renatofilho@905
|
83 |
# dh_installmenu
|
renatofilho@905
|
84 |
# dh_installdebconf
|
renatofilho@905
|
85 |
# dh_installlogrotate
|
renatofilho@905
|
86 |
# dh_installemacsen
|
renatofilho@905
|
87 |
# dh_installpam
|
renatofilho@905
|
88 |
# dh_installmime
|
renatofilho@905
|
89 |
# dh_python
|
renatofilho@905
|
90 |
# dh_installinit
|
renatofilho@905
|
91 |
# dh_installcron
|
renatofilho@905
|
92 |
# dh_installinfo
|
renatofilho@905
|
93 |
dh_installman
|
renatofilho@905
|
94 |
dh_link
|
renatofilho@905
|
95 |
dh_strip
|
renatofilho@905
|
96 |
dh_compress
|
renatofilho@905
|
97 |
dh_fixperms
|
renatofilho@905
|
98 |
# dh_perl
|
renatofilho@905
|
99 |
# dh_makeshlibs
|
renatofilho@905
|
100 |
dh_installdeb
|
renatofilho@905
|
101 |
dh_shlibdeps
|
renatofilho@905
|
102 |
dh_gencontrol
|
renatofilho@905
|
103 |
dh_md5sums
|
renatofilho@905
|
104 |
dh_builddeb
|
renatofilho@905
|
105 |
|
renatofilho@905
|
106 |
binary: binary-indep binary-arch
|
renatofilho@905
|
107 |
.PHONY: build clean binary-indep binary-arch binary install
|