~yolanda.robla/ubuntu/saucy/rubyluabridge/lua5.2

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Yolanda Robla
  • Date: 2013-07-19 08:34:28 UTC
  • mfrom: (2.1.5 sid)
  • Revision ID: yolanda.robla@canonical.com-20130719083428-bsae82wllbccvudz
* Acknowledge NMU, thanks to Scott Kitterman
* Patch Rakefile to work with newer rake version (Closes: #713148)
* Rename libluabridge-ruby and libluabridge-ruby1.8 to ruby-luabridge
* Build arch:all only when binary-indep called
* Build with hardening options
* Update to Standards-Version 3.9.4 (no changes)

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
# Uncomment this to turn on verbose mode.
10
10
#export DH_VERBOSE=1
11
11
 
12
 
 
13
 
 
14
 
build: build-stamp
 
12
# CFLAGS += "-I/usr/include/lua5.1 -fPIC $(shell dpkg-buildflags --get CFLAGS)"
 
13
# CPPFLAGS += "-I/usr/include/lua5.1 -fPIC $(shell dpkg-buildflags --get CPPFLAGS)"
 
14
# CXXFLAGS += "-I/usr/include/lua5.1 -fPIC $(shell dpkg-buildflags --get CXXFLAGS)"
 
15
# LDFLAGS += "-llua5.1 $(shell dpkg-buildflags --get LDFLAGS)"
 
16
 
 
17
build: build-arch build-indep
 
18
build-arch: build-stamp
 
19
build-indep: build-stamp
15
20
build-stamp:
16
21
        dh_testdir
17
22
        build/extconf_ubuntu.sh
18
23
        rake
 
24
        #$(MAKE) CFLAGS=$(CFLAGS) CPPFLAGS=$(CPPFLAGS) CXXFLAGS=$(CXXFLAGS) LDFLAGS=$(LDFLAGS)
19
25
        $(MAKE)
20
26
 
21
27
clean:
33
39
        dh_clean -k 
34
40
        dh_installdirs
35
41
        $(MAKE) DESTDIR=$(CURDIR)/debian/rubyluabridge install
 
42
        install -d $(CURDIR)/debian/rubyluabridge/usr/share/lintian/overrides
 
43
        cp $(CURDIR)/debian/lintian/* $(CURDIR)/debian/rubyluabridge/usr/share/lintian/overrides/
36
44
        mkdir -p $(CURDIR)/debian/rubyluabridge/usr/lib/ruby/1.8/
37
45
        mv $(CURDIR)/debian/rubyluabridge/usr/local/lib/site_ruby/1.8/* $(CURDIR)/debian/rubyluabridge/usr/lib/ruby/1.8/
38
46
        rm -rf $(CURDIR)/debian/rubyluabridge/usr/local
40
48
 
41
49
# Build architecture-independent files here.
42
50
binary-indep: build install
43
 
# We have nothing to do by default.
 
51
        dh_testdir -i
 
52
        dh_testroot -i
 
53
        dh_installchangelogs  -i
 
54
        dh_installdocs -i
 
55
        dh_installexamples -i
 
56
        dh_install -i --sourcedir=$(CURDIR)/debian/rubyluabridge
 
57
        dh_installman -i
 
58
        dh_link -i
 
59
        dh_compress -i
 
60
        dh_fixperms -i
 
61
        dh_installdeb -i
 
62
        dh_gencontrol -i
 
63
        dh_md5sums -i
 
64
        dh_builddeb -i
44
65
 
45
66
# Build architecture-dependent files here.
46
67
binary-arch: build install
47
 
        dh_testdir
48
 
        dh_testroot
49
 
        dh_installchangelogs 
50
 
        dh_installdocs
51
 
        dh_installexamples
52
 
        dh_install --sourcedir=$(CURDIR)/debian/rubyluabridge
53
 
        dh_installman
54
 
        dh_link
55
 
        dh_strip
56
 
        dh_compress
57
 
        dh_fixperms
58
 
        dh_installdeb
59
 
        dh_shlibdeps
60
 
        dh_gencontrol
61
 
        dh_md5sums
62
 
        dh_builddeb
 
68
        dh_testdir -a
 
69
        dh_testroot -a
 
70
        dh_installchangelogs  -a
 
71
        dh_installdocs -a
 
72
        dh_installexamples -a
 
73
        dh_install -a --sourcedir=$(CURDIR)/debian/rubyluabridge
 
74
        dh_installman -a
 
75
        dh_link -a
 
76
        dh_strip -a
 
77
        dh_compress -a
 
78
        dh_fixperms -a
 
79
        dh_installdeb -a
 
80
        dh_shlibdeps -a
 
81
        dh_gencontrol -a
 
82
        dh_md5sums -a
 
83
        dh_builddeb -a
63
84
 
64
85
binary: binary-indep binary-arch
65
86
.PHONY: build clean binary-indep binary-arch binary install configure