Changeset 6738a67 for debian/rules
- Timestamp:
- 2008-07-16T23:22:52Z (16 years ago)
- Branches:
- master
- Children:
- 9b55485
- Parents:
- 9730d72 (diff), 6a78c0e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
debian/rules
r9730d72 r6738a67 3 3 DEBUG ?= 0 4 4 5 ifdef BITLBEE_VERSION 6 BITLBEE_FORCE_VERSION=1 7 else 5 8 # Want to use the full package version number instead of just the release. 6 9 BITLBEE_VERSION ?= "$(shell dpkg-parsechangelog | grep ^Version: | awk '{print $$2}')" 7 10 export BITLBEE_VERSION 8 11 endif 9 12 10 13 build-arch: build-arch-stamp 11 14 build-arch-stamp: 12 if [ ! -d debian ]; then exit 1; fi13 ./configure --debug=$(DEBUG) --prefix=/usr --etcdir=/etc/bitlbee $(DEB_BUILD_OPTIONS)15 [ -d debian ] 16 ./configure --debug=$(DEBUG) --prefix=/usr --etcdir=/etc/bitlbee --events=libevent 14 17 $(MAKE) 15 18 # $(MAKE) -C doc/ all … … 17 20 18 21 clean: 19 if [ "`whoami`" != "root" -o ! -d debian ]; then exit 1; fi20 rm -rf build-arch-stamp debian/bitlbee debian/*.substvars debian/files 21 -$(MAKE) distclean22 [ "`whoami`" = "root" -a -d debian ] 23 rm -rf build-arch-stamp debian/bitlbee debian/*.substvars debian/files debian/bitlbee-dev 24 $(MAKE) distclean 22 25 # -$(MAKE) -C doc/ clean 23 26 24 27 25 28 install-arch: build-arch 26 if [ "`whoami`" != "root" -o ! -d debian ]; then exit 1; fi29 [ "`whoami`" = "root" -a -d debian ] 27 30 mkdir -p debian/bitlbee/DEBIAN/ 28 31 $(MAKE) install install-etc DESTDIR=`pwd`/debian/bitlbee … … 32 35 cp doc/user-guide/user-guide.html debian/bitlbee/usr/share/doc/bitlbee/ 33 36 37 install-indep: install-arch 38 [ "`whoami`" = "root" -a -d debian ] 39 mkdir -p debian/bitlbee-dev/DEBIAN/ 40 $(MAKE) install-dev DESTDIR=`pwd`/debian/bitlbee-dev 41 42 mkdir -p debian/bitlbee-dev/usr/share/doc/bitlbee-dev/ 43 34 44 binary-arch: build-arch install-arch 35 if [ "`whoami`" != "root" -o ! -d debian ]; then exit 1; fi45 [ "`whoami`" = "root" -a -d debian ] 36 46 37 47 chmod 755 debian/post* debian/pre* debian/config debian/bitlbee.init … … 49 59 doc/bitlbee/examples/* man/man8/bitlbee.8 man/man5/bitlbee.conf.5 50 60 51 chown -R root .root debian/bitlbee/61 chown -R root:root debian/bitlbee/ 52 62 find debian/bitlbee/usr/share/ -type d -exec chmod 755 {} \; 53 63 find debian/bitlbee/usr/share/ -type f -exec chmod 644 {} \; … … 66 76 find usr -type f -exec md5sum {} \; > DEBIAN/md5sums 67 77 dpkg-shlibdeps -Tdebian/bitlbee.substvars -dDepends debian/bitlbee/usr/sbin/bitlbee 68 ifdef BITLBEE_ VERSION78 ifdef BITLBEE_FORCE_VERSION 69 79 dpkg-gencontrol -ldebian/changelog -isp -pbitlbee -Tdebian/bitlbee.substvars -Pdebian/bitlbee -v1:$(BITLBEE_VERSION)-0 -V'debconf-depends=debconf (>= 1.2.0) | debconf-2.0' 70 80 else … … 74 84 dpkg --build debian/bitlbee .. 75 85 76 debug-build: 77 BITLBEE_VERSION=\"`date +%Y%m%d`-`hostname`-debug\" debian/rules clean binary DEBUG=186 binary-indep: install-indep 87 [ "`whoami`" = "root" -a -d debian ] 78 88 79 binary: binary-arch 89 chown -R root.root debian/bitlbee-dev/ 90 find debian/bitlbee-dev/usr/share/ -type d -exec chmod 755 {} \; 91 find debian/bitlbee-dev/usr/share/ -type f -exec chmod 644 {} \; 92 93 cp debian/changelog debian/bitlbee-dev/usr/share/doc/bitlbee-dev/changelog.Debian 94 gzip -9 debian/bitlbee-dev/usr/share/doc/bitlbee-dev/changelog.Debian 95 cp debian/copyright debian/bitlbee-dev/usr/share/doc/bitlbee-dev/copyright 96 97 cd debian/bitlbee-dev; \ 98 find usr -type f -exec md5sum {} \; > DEBIAN/md5sums 99 100 dpkg-gencontrol -ldebian/changelog -isp -pbitlbee-dev -Pdebian/bitlbee-dev 101 102 dpkg --build debian/bitlbee-dev .. 103 104 binary: binary-arch binary-indep 80 105 build: build-arch 81 install: install-arch 106 install: install-arch install-indep 82 107 83 .PHONY: build-arch build clean binary-arch binary install-arch install 108 .PHONY: build-arch build clean binary-arch binary install-arch install binary-indep install-indep
Note: See TracChangeset
for help on using the changeset viewer.