~ubuntu-branches/ubuntu/trusty/xterm/trusty

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Timo Aaltonen
  • Date: 2010-03-31 12:32:27 UTC
  • mfrom: (1.1.17 upstream) (11.1.17 sid)
  • Revision ID: james.westby@ubuntu.com-20100331123227-8a6qwmyciob6j88y
Tags: 256-1ubuntu1
* Merge from Debian unstable.
* Revert the libutempter change for lucid. (LP: #539473)

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
configure: $(STAMP_DIR)/configure
47
47
$(STAMP_DIR)/configure: $(STAMP_DIR)/patch
48
48
        dh_testdir
49
 
        [ -d obj-$(DEB_BUILD_GNU_TYPE) ] || mkdir obj-$(DEB_BUILD_GNU_TYPE)
50
 
        cd obj-$(DEB_BUILD_GNU_TYPE) && \
 
49
        [ -d build ] || mkdir build
 
50
        cd build && \
51
51
        ../configure \
52
52
                --prefix=/usr \
53
53
                --exec-prefix=/usr \
62
62
                --enable-narrowproto \
63
63
                --enable-exec-xterm \
64
64
                --enable-dabbrev \
65
 
                --with-utempter \
66
65
                $(confflags) \
67
66
                DESKTOP_FLAGS="$(DESKTOP_FLAGS)" \
68
67
                CFLAGS="$(CFLAGS)" \
74
73
build: $(STAMP_DIR)/build
75
74
$(STAMP_DIR)/build: $(STAMP_DIR)/configure debian/local/xterm.faq.gz
76
75
        dh_testdir
77
 
        cd obj-$(DEB_BUILD_GNU_TYPE) && $(MAKE)
 
76
        cd build && $(MAKE)
78
77
        touch $@
79
78
 
80
79
.PHONY: clean
82
81
        dh_testdir
83
82
        dh_testroot
84
83
        rm -rf $(STAMP_DIR)
85
 
        rm -rf obj-$(DEB_BUILD_GNU_TYPE)
 
84
        rm -rf build
86
85
        dh_clean debian/local/xterm.faq.gz
87
86
 
88
87
.PHONY: install
92
91
        dh_clean -k
93
92
        dh_installdirs
94
93
        # General installation
95
 
        cd obj-$(DEB_BUILD_GNU_TYPE) && \
 
94
        cd build && \
96
95
        $(MAKE) install mandir=/usr/share/man/man1 libdir=/etc DESTDIR=$(DEBTREEDIR)
97
96
        
98
97
        ## Install lxterm command and manual page.
106
105
        dh_installchangelogs
107
106
        dh_installmenu
108
107
        dh_install --sourcedir=debian/tmp --list-missing
 
108
        # Lintian overrides.
 
109
        cp debian/xterm.overrides $(CURDIR)/debian/xterm/usr/share/lintian/overrides/xterm
109
110
 
110
111
# Generate plain text XTerm FAQ from HTML.
111
112
debian/local/xterm.faq.gz: debian/local/xterm.faq.html
124
125
        dh_strip
125
126
        dh_compress
126
127
        dh_fixperms
 
128
        chown :utmp debian/xterm/usr/bin/xterm
 
129
        chmod g+s debian/xterm/usr/bin/xterm
127
130
        dh_installdeb
128
131
        dh_shlibdeps
129
132
        dh_gencontrol