blob: 7b37c2f0b4b8b9f6d537580c6e1fc61fe706491a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
INSTALL_PROGRAM += -s
endif
configure-stamp:
dh_testdir
dh_autoreconf
./configure --prefix=/usr \
--mandir=\$${prefix}/share/man \
--enable-static \
$(shell dpkg-buildflags --export=cmdline)
touch $@
build-arch: build
build-indep: build
build: build-stamp
build-stamp: configure-stamp
dh_testdir
$(MAKE)
touch $@
clean:
dh_testdir
dh_testroot
rm -f *-stamp
# Add here commands to clean up after the build process.
[ ! -f Makefile ] || [ ! -f config.status ] || $(MAKE) distclean
find . -name '*.o' -o -name '_libs' -o -name '*.lo' -o -name '*.a' -o -name '.deps' | xargs rm -rf
# remove unused configure stuff
rm -f config.log config.cache config.status
dh_autoreconf_clean
dh_clean
install: install-stamp
install-stamp: build
dh_testdir
dh_testroot
dh_clean
$(MAKE) prefix=$(CURDIR)/debian/tmp/usr \
mandir=$(CURDIR)/debian/tmp/usr/share/man install
touch install-stamp
# Build architecture-independent files here.
binary-indep:
# We have nothing to do by default.
# Build architecture-dependent files here.
binary-arch: build install
dh_testdir -a
dh_testroot -a
dh_install -a
dh_installdocs -a
dh_installchangelogs -a ChangeLog
dh_installexamples -a
chmod -x debian/libxbase64-dev/usr/share/doc/libxbase64-dev/examples/*.cpp
dh_strip -a
dh_compress -a -X.cpp
dh_fixperms -a
dh_makeshlibs -a
dh_shlibdeps -a
dh_installdeb -a
dh_gencontrol -a
dh_md5sums -a
dh_builddeb -a
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install
|