Rev 37 | Rev 51 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 37 | Rev 39 | ||
---|---|---|---|
1 | #!/usr/bin/make -f |
1 | #!/usr/bin/make -f |
2 | # -*- makefile -*- |
2 | # -*- makefile -*- |
3 | # Sample debian/rules that uses debhelper. |
3 | # Sample debian/rules that uses debhelper. |
4 | # This file was originally written by Joey Hess and Craig Small. |
4 | # This file was originally written by Joey Hess and Craig Small. |
5 | # As a special exception, when this file is copied by dh-make into a |
5 | # As a special exception, when this file is copied by dh-make into a |
6 | # dh-make output file, you may use that output file without restriction. |
6 | # dh-make output file, you may use that output file without restriction. |
7 | # This special exception was added by Craig Small in version 0.37 of dh-make. |
7 | # This special exception was added by Craig Small in version 0.37 of dh-make. |
8 | 8 | ||
9 | # Uncomment this to turn on verbose mode. |
9 | # Uncomment this to turn on verbose mode. |
10 | #export DH_VERBOSE=1 |
10 | #export DH_VERBOSE=1 |
11 | 11 | ||
12 | DESTDIR=$(CURDIR)/debian/ssvnc |
12 | DESTDIR=$(CURDIR)/debian/ssvnc |
13 | 13 | ||
14 | export CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS) |
14 | export CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS) |
15 | export CFLAGS := $(shell dpkg-buildflags --get CFLAGS) |
15 | export CFLAGS := $(shell dpkg-buildflags --get CFLAGS) |
16 | export LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) |
16 | export LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) |
17 | 17 | ||
18 | configure: configure-stamp |
18 | configure: configure-stamp |
19 | configure-stamp: |
19 | configure-stamp: |
20 | dh_testdir |
20 | dh_testdir |
21 | $(MAKE) config |
21 | $(MAKE) config |
22 | touch configure-stamp |
22 | touch configure-stamp |
23 | 23 | ||
24 | build-indep: |
24 | build-indep: |
25 | 25 | ||
26 | build-arch: build-stamp |
26 | build-arch: build-stamp |
27 | build-stamp: configure-stamp |
27 | build-stamp: configure-stamp |
28 | dh_testdir |
28 | dh_testdir |
29 | 29 | ||
30 | $(MAKE) all |
30 | $(MAKE) all |
31 | 31 | ||
32 | touch $@ |
32 | touch $@ |
33 | 33 | ||
34 | build: build-arch build-indep |
34 | build: build-arch build-indep |
35 | 35 | ||
36 | clean: configure-stamp |
36 | clean: configure-stamp |
37 | dh_testdir |
37 | dh_testdir |
38 | dh_testroot |
38 | dh_testroot |
39 | rm -f build-stamp configure-stamp |
39 | rm -f build-stamp configure-stamp |
40 | 40 | ||
41 | $(MAKE) clean |
41 | $(MAKE) clean |
42 | rm vnc_unixsrc/*/Makefile |
42 | rm vnc_unixsrc/*/Makefile |
43 | 43 | ||
44 | dh_clean |
44 | dh_clean |
45 | 45 | ||
46 | install: build |
46 | install: build |
47 | dh_testdir |
47 | dh_testdir |
48 | dh_testroot |
48 | dh_testroot |
49 | dh_prep |
49 | dh_prep |
50 | 50 | ||
51 | $(MAKE) ROOT=$(DESTDIR) PREFIX=/usr MANDIR=share/man install |
51 | $(MAKE) ROOT=$(DESTDIR) PREFIX=/usr MANDIR=share/man install |
52 | sed -ri -e 's#/bin/sh#/bin/bash#g' \ |
52 | sed -ri -e 's#/bin/sh#/bin/bash#g' \ |
53 | $(addprefix $(DESTDIR)/usr/lib/ssvnc/,ssvnc ssvnc_cmd util/ss_vncviewer util/ssvnc.tcl) |
53 | $(addprefix $(DESTDIR)/usr/lib/ssvnc/,ssvnc ssvnc_cmd util/ss_vncviewer util/ssvnc.tcl) |
54 | 54 | ||
55 | # Build architecture-independent files here. |
55 | # Build architecture-independent files here. |
56 | binary-indep: |
56 | binary-indep: |
57 | # We have nothing to do by default. |
57 | # We have nothing to do by default. |
58 | 58 | ||
59 | # Build architecture-dependent files here. |
59 | # Build architecture-dependent files here. |
60 | binary-arch: build install |
60 | binary-arch: build install |
61 | dh_testdir |
61 | dh_testdir |
62 | dh_testroot |
62 | dh_testroot |
63 | dh_installchangelogs -k ReleaseNotes |
63 | dh_installchangelogs -k ReleaseNotes |
64 | dh_installdocs |
64 | dh_installdocs |
65 | dh_installexamples |
65 | dh_installexamples |
66 | dh_installman |
66 | dh_installman |
67 | dh_link |
67 | dh_link |
- | 68 | dh_strip_nondeterminism |
|
68 | dh_strip |
69 | dh_strip |
69 | dh_compress |
70 | dh_compress |
70 | dh_fixperms |
71 | dh_fixperms |
71 | dh_installdeb |
72 | dh_installdeb |
72 | dh_shlibdeps |
73 | dh_shlibdeps |
73 | dh_gencontrol |
74 | dh_gencontrol |
74 | dh_md5sums |
75 | dh_md5sums |
75 | dh_builddeb |
76 | dh_builddeb |
76 | 77 | ||
77 | binary: binary-indep binary-arch |
78 | binary: binary-indep binary-arch |
78 | .PHONY: build-indep build-arch build clean binary-indep binary-arch binary install configure |
79 | .PHONY: build-indep build-arch build clean binary-indep binary-arch binary install configure |