0
|
1 #!/usr/bin/make -f
|
|
2
|
1
|
3 CFLAGS = -Wall -g
|
0
|
4
|
1
|
5 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
|
|
6 CFLAGS += -O0
|
|
7 else
|
|
8 CFLAGS += -O2
|
|
9 endif
|
0
|
10
|
|
11
|
|
12
|
|
13 build: build-stamp
|
|
14 build-stamp:
|
|
15 dh_testdir
|
|
16 $(MAKE)
|
|
17 touch $@
|
|
18
|
|
19
|
|
20 clean:
|
|
21 dh_testdir
|
|
22 dh_testroot
|
|
23 rm -f build-stamp
|
2
|
24 $(MAKE) realclean
|
0
|
25 dh_clean
|
|
26
|
|
27
|
|
28 install: build
|
|
29 dh_testdir
|
|
30 dh_testroot
|
|
31 dh_clean -k
|
|
32 dh_installdirs
|
|
33 $(MAKE) DESTDIR=$(CURDIR)/debian/resize-gd install PREFIX=/usr
|
|
34
|
1
|
35
|
0
|
36 binary: binary-arch binary-indep
|
|
37 binary-indep:
|
|
38 binary-arch: build install
|
|
39 dh_testdir
|
|
40 dh_testroot
|
|
41 dh_installdocs
|
1
|
42 dh_installchangelogs ChangeLog
|
0
|
43 dh_installman
|
|
44 dh_strip
|
|
45 dh_compress
|
2
|
46 dh_makeshlibs
|
0
|
47 dh_fixperms
|
|
48 dh_gencontrol
|
|
49 dh_md5sums
|
|
50 dh_builddeb
|
|
51
|
|
52
|
1
|
53 .PHONY: build build-stamp clean install binary binary-arch binary-indep
|