summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorBernhard R. Link <brlink@debian.org>2008-02-21 15:20:41 +0100
committerBernhard R. Link <brlink@debian.org>2008-02-21 15:20:41 +0100
commit0f793c3f0ba508afa251cab5cfd45fe79123584f (patch)
treef4689e6a1bd701764f7dd756f044edc77ab82de2 /debian/rules
parent7f74fffef79e5e77f9b880a7cad8fc308e901709 (diff)
downloadratpoison-0f793c3f0ba508afa251cab5cfd45fe79123584f.zip
update debian/ directory
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules73
1 files changed, 24 insertions, 49 deletions
diff --git a/debian/rules b/debian/rules
index 17a6fa3..e3c91f5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,5 +1,4 @@
#!/usr/bin/make -f
-# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
@@ -9,7 +8,6 @@
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
-
CFLAGS = -Wall -g
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
@@ -29,6 +27,12 @@ config.status: configure
echo "incompatible install-info call in doc/Makefile.in!" >&2 ;\
exit 1 ; \
fi
+ifneq "$(wildcard /usr/share/misc/config.sub)" ""
+ cp /usr/share/misc/config.sub config.sub
+endif
+ifneq "$(wildcard /usr/share/misc/config.guess)" ""
+ cp /usr/share/misc/config.guess config.guess
+endif
./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
--prefix=/usr \
--mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info \
@@ -37,6 +41,11 @@ config.status: configure
$(DEPENDENCIES) \
--x-includes="" --x-libraries="" \
CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,syms"
+ # libXext is not needed for dynamic linking:
+ sed -i -e '/^LIBS =/s/-lXext //' src/Makefile
+# do not delete config.status if above rule failed,
+# as that might hide other left over files that need cleaning
+.PRECIOUS: config.status
build-arch: build-arch-stamp
build-arch-stamp: config.status
@@ -60,21 +69,18 @@ clean:
rm -f build-arch-stamp build-indep-stamp
if [ -e config.status ] ; then $(MAKE) distclean ; fi
+ ! test -f config.log
-rm -f contrib/Ratpoison.pm contrib/ratpoison-cmd.el contrib/ratpoison.lisp contrib/ratpoison.py contrib/ratpoison.rb
-rm -f rpws.1
-ifneq "$(wildcard /usr/share/misc/config.sub)" ""
- cp -f /usr/share/misc/config.sub config.sub
-endif
-ifneq "$(wildcard /usr/share/misc/config.guess)" ""
- cp -f /usr/share/misc/config.guess config.guess
-endif
+ -rm -f config.sub config.guess
dh_clean
-install: install-arch install-indep
-
-install-indep: build-indep
+# Build architecture-independent files
+binary-indep: build-indep-stamp
+# We have nothing to do
-install-arch: build-arch
+# Build architecture-dependent files
+binary-arch: build-arch-stamp
dh_testdir
dh_testroot
dh_clean -k
@@ -82,21 +88,12 @@ install-arch: build-arch
$(MAKE) install pkgdatadir=/usr/share/doc/ratpoison/examples DESTDIR=$(CURDIR)/debian/ratpoison
# Those are installed to different places already by dh_*
- rm $(CURDIR)/debian/ratpoison/usr/share/doc/ratpoison/COPYING
- rm $(CURDIR)/debian/ratpoison/usr/share/doc/ratpoison/ChangeLog
+ rm debian/ratpoison/usr/share/doc/ratpoison/COPYING
+ rm debian/ratpoison/usr/share/doc/ratpoison/ChangeLog
# not needed two times:
- rm $(CURDIR)/debian/ratpoison/usr/share/doc/ratpoison/examples/rpws
+ rm debian/ratpoison/usr/share/doc/ratpoison/examples/rpws
# The menu command:
- install -D -m 0755 debian/callmenu.sh $(CURDIR)/debian/ratpoison/etc/X11/ratpoison/ratpoisonmenu
-
-# Build architecture-independent files here.
-binary-indep: build-indep install-indep
-# We have nothing to do
-
-# Build architecture-dependent files here.
-binary-arch: build-arch install-arch
- dh_testdir
- dh_testroot
+ install -D -m 0755 debian/callmenu.sh debian/ratpoison/etc/X11/ratpoison/ratpoisonmenu
dh_install
dh_installchangelogs ChangeLog
dh_installdocs
@@ -115,9 +112,7 @@ binary-arch: build-arch install-arch
dh_md5sums
dh_builddeb
-RATPOISON_VERSION=1.4.2
-RATPOISON_CVSVERSION=1.4.1~CVS$(shell date +%Y%m%d)
-RATPOISON_UVERSION=1.4.2-CVS
+RATPOISON_VERSION=1.4.3
# some helpers for me
# just ignore those if you want to do a NMU or a security upload, change the files outside
@@ -131,26 +126,6 @@ maintainer-unclean:
ln -s "../pc-ratpoison-$(RATPOISON_VERSION)" .pc
ln -s debian/patches patches
quilt push -a
-maintainer-ready:
- test ! -d "../ratpoison-$(RATPOISON_VERSION)"
- test ! -d "../pc-ratpoison-$(RATPOISON_VERSION)"
- rm -rf "ratpoison-$(RATPOISON_UVERSION)"
- tar -xzf "../ratpoison_$(RATPOISON_VERSION).orig.tar.gz"
- mv "ratpoison-$(RATPOISON_UVERSION)" "../ratpoison-$(RATPOISON_VERSION)"
- cp -a debian "../ratpoison-$(RATPOISON_VERSION)/"
- rm -rf "../ratpoison-$(RATPOISON_VERSION)/debian/CVS"
- rm -rf "../ratpoison-$(RATPOISON_VERSION)/debian/patches/CVS"
- mkdir "../pc-ratpoison-$(RATPOISON_VERSION)"
- ln -s "../pc-ratpoison-$(RATPOISON_VERSION)" "../ratpoison-$(RATPOISON_VERSION)/.pc"
- ln -s debian/patches "../ratpoison-$(RATPOISON_VERSION)/patches"
- cd "../ratpoison-$(RATPOISON_VERSION)" && quilt upgrade && quilt push -a
-maintainer-cvs:
- make dist
- mv "ratpoison-$(RATPOISON_UVERSION).tar.gz" "../ratpoison_$(RATPOISON_CVSVERSION).orig.tar.gz"
- ./debian/rules maintainer-ready RATPOISON_VERSION="$(RATPOISON_CVSVERSION)"
- cd "../ratpoison-$(RATPOISON_CVSVERSION)" && ./debian/rules maintainer-clean
- cd "../ratpoison-$(RATPOISON_CVSVERSION)" && dch -v "$(RATPOISON_CVSVERSION)-0" -D "LOCAL"
-
binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install get-orig-source make-orig-source-working
+.PHONY: build-arch build-indep build clean binary-indep binary-arch binary maintainer-clean maintainer-unclean