blob: 176d8a9717048e89329b0c629a504a95efb67b37 (
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
|
#!/usr/bin/make -f
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
else
CFLAGS += -O2
endif
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
INSTALL_PROGRAM += -s
endif
build: build-stamp
build-stamp:
dh_testdir
./autogen.sh
./configure --prefix=/usr
make
touch build-stamp
# this is really not part of debian package build, but just for convinience
clean: checkroot
$(checkdir)
rm -f build-stamp
rm -rf .deps
rm -f debian/substvars debian/files
rm -rf debian/tmp obj obj-build obj64 objfake
rm -f config.log config.status
find -name '*.o' | xargs rm -f
find -name '*.a' | xargs rm -f
find -name '*.so' | xargs rm -f
dh_clean
# Build architecture-independent files here.
binary-indep: build
# We have nothing to do by default.
# Build architecture-dependent files here.
install: build
dh_testdir
dh_testroot
dh_installdirs
$(MAKE) prefix="$(CURDIR)/debian/scratchbox2/usr" install
binary-arch: install
dh_testdir -a
dh_testroot -a
dh_installdocs -a README
dh_installchangelogs -a
dh_strip -a
dh_compress -a
dh_fixperms -a
# FIXME, do in postinst
dh_installdeb -a
dh_shlibdeps -a
dh_gencontrol -a
dh_md5sums -a
dh_builddeb -a
binary: binary-arch
.PHONY: build clean binary-indep binary-arch binary checkroot prebuild
define checkdir
dh_testdir
endef
checkroot:
$(checkdir)
dh_testroot
|