Package for stretch and buster
[public/libpam-csc.git] / debian / rules
1 #!/usr/bin/make -f
2
3 CFLAGS = -Wall -g
4
5 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
6         CFLAGS += -O0
7 else
8         CFLAGS += -O2
9 endif
10
11 configure: configure-stamp
12 configure-stamp:
13         dh_testdir
14         touch configure-stamp
15
16
17 build: build-arch build-indep
18 build-arch: build-stamp
19 build-indep: build-stamp
20 build-stamp: configure-stamp
21         dh_testdir
22
23         $(MAKE)
24
25         touch $@
26
27 clean:
28         dh_testdir
29         dh_testroot
30         rm -f build-stamp configure-stamp
31
32         $(MAKE) clean
33         dh_clean
34
35 install: build-stamp
36         dh_testdir
37         dh_testroot
38         dh_prep
39         dh_installdirs
40         install -m 644 pam_csc.so $(CURDIR)/debian/libpam-csc/lib/security
41
42
43 # Build architecture-independent files here.
44 binary-indep: build install
45 # We have nothing to do by default.
46
47 # Build architecture-dependent files here.
48 binary-arch: build install
49         dh_testdir
50         dh_testroot
51         dh_installchangelogs
52         dh_installdocs
53         dh_installexamples
54         dh_installman
55         dh_link
56         dh_strip
57         dh_compress
58         dh_fixperms
59         dh_installdeb
60         dh_shlibdeps
61         dh_gencontrol
62         dh_md5sums
63         dh_builddeb
64
65 binary: binary-indep binary-arch
66 .PHONY: build clean binary-indep binary-arch binary install configure