aboutsummaryrefslogtreecommitdiffstats
path: root/debian/rules
diff options
context:
space:
mode:
authorSantiago Vila <sanvila@debian.org>2015-09-29 21:07:24 +0200
committerBryan Newbold <bnewbold@robocracy.org>2017-02-20 00:05:44 -0800
commit2da44849a1d04142f58c9363af945886e1ba6869 (patch)
treeeecdee0b621ca455cc4835b693167d194cb60924 /debian/rules
parentbf1e40f9284326ede072d2adaf2c83a48f725209 (diff)
downloadslib-master.zip
slib-master.tar.gz
Import Debian changes 3b1-5HEADdebian/3b1-5master
slib (3b1-5) unstable; urgency=medium * QA upload. * Drop obsolete prerm. * Drop obsolete preinst. * Switch to minimal dh debian/rules. * Tidy up debian/patches a little bit. * Add a debian/clean file so that package builds twice in a row. * Do not regenerate version.txi just because Makefile was modified. * Try to be reproducible by setting PERL_HASH_SEED and using an init file for texi2html (inspired by texi2html test suite).
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules124
1 files changed, 13 insertions, 111 deletions
diff --git a/debian/rules b/debian/rules
index eb91909..aa718bb 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,120 +1,22 @@
-#! /usr/bin/make -f
-# -*-Makefile-*-
+#!/usr/bin/make -f
-SCHEME_LIBRARY_PATH=./
-export SCHEME_LIBRARY_PATH
+export PERL_HASH_SEED = 0
-CC =gcc
-CFLAGS =-O2 -g -Wall
-LDFLAGS =
+TEXI2HTML = texi2html --init-file debian/texi2html.rc --split chapter --verbose
-SHELL =/bin/sh
-srcdir =.
+%:
+ dh $@
-INSTALL =/usr/bin/install
-INSTALL_DIR =$(INSTALL) -d -m 755 -o root -g root
-INSTALL_PROGRAM =$(INSTALL) -m 755 -o root -g root
-INSTALL_DATA =$(INSTALL) -m 644 -o root -g root
-INSTALL_MAN =$(INSTALL) -m 444 -o root -g root
+override_dh_auto_clean:
+ rm -f *.html
+ rm -f slib*.info
+ dh_clean
-TEXI2HTML = texi2html --split chapter --verbose
-
-build:
- $(checkdir)
+override_dh_auto_build:
# Run the "default target", whatever it be
- $(MAKE) TEXI2HTML="$(TEXI2HTML)"
+ $(MAKE)
# Then run target "html"
$(MAKE) TEXI2HTML="$(TEXI2HTML)" html
- touch build
-
-clean:
- $(checkdir)
- -rm slib.info*
- make clean
- -rm -f build
- -rm -rf debian/tmp* *~ debian/*~ debian/files debian/substvars
- -rm -f srcdir.mk
- -rm -f slib*.info
- -rm -f version.txi
- -rm -rf slib*.html
- -rm -rf $(htmldir)
- -rm -f .slibcat
-
-binary-arch: checkroot
-# $(checkdir)
-
-binary-indep: checkroot build
- $(checkdir)
- -rm -rf debian/tmp*
-
-# debian/tmp
- $(INSTALL_DIR) debian/tmp
- $(INSTALL_DIR) debian/tmp/DEBIAN
- $(INSTALL_PROGRAM) debian/postinst debian/tmp/DEBIAN
- $(INSTALL_PROGRAM) debian/prerm debian/tmp/DEBIAN
- $(INSTALL_PROGRAM) debian/preinst debian/tmp/DEBIAN
-
-# library
- $(INSTALL_DIR) debian/tmp/usr/share/slib
- $(INSTALL_DATA) *.scm debian/tmp/usr/share/slib
- # this fixes a load problem with guile
- ( cd debian/tmp/usr/share/slib ; ln -s mklibcat.scm mklibcat )
-
-# documentation
- $(INSTALL_DIR) debian/tmp/usr/share/doc/slib
- $(INSTALL_DATA) debian/copyright debian/tmp/usr/share/doc/slib
- $(INSTALL_DATA) debian/changelog \
- debian/tmp/usr/share/doc/slib/changelog.Debian
- gzip -9v debian/tmp/usr/share/doc/slib/changelog.Debian
-
- $(INSTALL_DATA) ChangeLog debian/tmp/usr/share/doc/slib/changelog
- gzip -9v debian/tmp/usr/share/doc/slib/changelog
- $(INSTALL_DATA) README debian/tmp/usr/share/doc/slib
- gzip -9v debian/tmp/usr/share/doc/slib/README
- $(INSTALL_DATA) FAQ debian/tmp/usr/share/doc/slib
- gzip -9v debian/tmp/usr/share/doc/slib/FAQ
- $(INSTALL_DATA) *.html debian/tmp/usr/share/doc/slib
-
- ln -s . debian/tmp/usr/share/slib/init
- $(INSTALL_DATA) *.init debian/tmp/usr/share/slib
-
- $(INSTALL_DIR) debian/tmp/usr/share/doc-base
- $(INSTALL_DATA) debian/doc-base debian/tmp/usr/share/doc-base/slib
-
- $(INSTALL_DIR) debian/tmp/usr/share/man/man1
- $(INSTALL_DATA) slib.1 debian/tmp/usr/share/man/man1/slib.1
- gzip -9v debian/tmp/usr/share/man/man1/slib.1
-
-# info pages
- $(INSTALL_DIR) debian/tmp/usr/share/info
- $(INSTALL_DATA) slib.info* debian/tmp/usr/share/info
- gzip -9v debian/tmp/usr/share/info/*
-
-# slibconfig
-
-# $(INSTALL_DIR) debian/tmp/usr/sbin
-# $(INSTALL_PROGRAM) debian/slibconfig debian/tmp/usr/sbin
-
-# program
- $(INSTALL_DIR) debian/tmp/usr/bin
- $(INSTALL_PROGRAM) slib.sh debian/tmp/usr/bin/slib
-
-# lintian
- $(INSTALL_DIR) debian/tmp/usr/share/lintian/overrides
- $(INSTALL_DATA) debian/slib.lintian-overrides debian/tmp/usr/share/lintian/overrides/slib
-
- dh_md5sums
- dpkg-gencontrol -is -ip
- dpkg --build debian/tmp ..
-
-define checkdir
- test -f slib.texi -a -f debian/rules
-endef
-
-binary: binary-indep binary-arch
-
-checkroot:
- $(checkdir)
- test root = "`whoami`"
-.PHONY: config build clean binary binary-arch binary-indep
+override_dh_auto_install:
+ install -m 755 slib.sh debian/slib/usr/bin/slib