1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
|
#!/usr/bin/make -f
# Exim-texinfo rules file
package=exim-html
build:
$(checkdir)
touch build
clean:
$(checkdir)
-rm -f build
-rm `find . -name "*~"`
-rm -rf debian/*substvars debian/tmp debian/files
binary-indep: checkroot build
$(checkdir)
# Build exim-doc-html package
-rm -rf debian/tmp
# First create directories
install -d debian/tmp/DEBIAN
install -d debian/tmp/usr/share/doc/exim/manual.html
install -d debian/tmp/usr/share/doc/exim-doc-html
# Copy files in
cp doc/html/*.html debian/tmp/usr/share/doc/exim/manual.html
cp doc/html/*.gif debian/tmp/usr/share/doc/exim/manual.html
# Install copyright file etc
install -m644 debian/copyright debian/tmp/usr/share/doc/exim-doc-html
install -m644 debian/changelog \
debian/tmp/usr/share/doc/exim-doc-html/changelog.Debian
gzip -9v debian/tmp/usr/share/doc/exim-doc-html/changelog.Debian
# Generate md5sums
(cd debian/tmp; find -type f | sed s#^./## | grep -v DEBIAN | \
xargs md5sum > DEBIAN/md5sums )
# Standard package building stuff
install -m755 debian/postinst debian/prerm debian/tmp/DEBIAN
dpkg-gencontrol -pexim-doc-html
chown -R root.root debian/tmp
chmod -R g-ws debian/tmp
dpkg --build debian/tmp ..
binary-arch: checkroot build
$(checkdir)
# No architecture dependent packages
define checkdir
test -f doc/html/spec.html -a -f debian/rules
endef
# Below here is fairly generic really
binary: binary-indep binary-arch
source diff:
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
checkroot:
$(checkdir)
test root = "`whoami`"
.PHONY: binary binary-arch binary-indep clean checkroot
|