aboutsummaryrefslogtreecommitdiffstats
path: root/debian/rules
diff options
context:
space:
mode:
authorJim Pick <jim@jimpick.com>1998-03-08 23:05:22 -0800
committerBryan Newbold <bnewbold@robocracy.org>2017-02-20 00:05:27 -0800
commitb21cac3362022718634f7086964208b2eed8e897 (patch)
tree16f4b2e70645c0e8e2202023170b5a94baa967e3 /debian/rules
parent3796d2595035e192ed4bf1c9a6bfdb13c3c9d261 (diff)
parentf24b9140d6f74804d5599ec225717d38ca443813 (diff)
downloadslib-b21cac3362022718634f7086964208b2eed8e897.zip
slib-b21cac3362022718634f7086964208b2eed8e897.tar.gz
Import Debian changes 2c0-3debian/2c0-3
slib (2c0-3) unstable; urgency=low * New maintainer. * slibconfig script to automatically configure guile. * Fix type in description, closes: Bug#18996 slib (2c0-2) unstable; urgency=low * Minor fix for debian/rules targets slib (2c0-1) unstable; urgency=low * New upstream source * New maintainer
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules53
1 files changed, 30 insertions, 23 deletions
diff --git a/debian/rules b/debian/rules
index f36c459..e76c9fb 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,5 +1,5 @@
#! /usr/bin/make -f
-#
+# -*-Makefile-*-
CC =gcc
CFLAGS =-O2 -g -Wall
@@ -14,63 +14,70 @@ 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
-config:
- $(checkdir)
- touch stamp-config
-
build:
$(checkdir)
- test -f stamp-config || make -f debian/rules config
make
texi2html -monolithic slib.texi
- touch stamp-build
+ touch build
clean:
$(checkdir)
- test -f stamp-config || make -f debian/rules config
-rm slib.html
+ -rm slib.info*
make clean
- -rm -f stamp-config stamp-build
- -rm -rf debian/tmp* debian/files debian/substvars
+ -rm -f build
+ -rm -rf debian/tmp* *~ debian/*~ debian/files debian/substvars
binary-arch: checkroot
$(checkdir)
-binary-indep: checkroot
+binary-indep: checkroot build
$(checkdir)
-rm -rf debian/tmp*
- test -f stamp-build || make -f debian/rules build
-#
-#
+
# debian/tmp
$(INSTALL_DIR) debian/tmp
$(INSTALL_DIR) debian/tmp/DEBIAN
$(INSTALL_PROGRAM) debian/postinst debian/tmp/DEBIAN
$(INSTALL_PROGRAM) debian/postrm debian/tmp/DEBIAN
+
# library
$(INSTALL_DIR) debian/tmp/usr/lib/slib
$(INSTALL_DATA) *.scm debian/tmp/usr/lib/slib
+
# documentation
$(INSTALL_DIR) debian/tmp/usr/doc/slib
$(INSTALL_DATA) debian/copyright debian/tmp/usr/doc/slib
$(INSTALL_DATA) debian/changelog \
debian/tmp/usr/doc/slib/changelog.Debian
- gzip -9 debian/tmp/usr/doc/slib/changelog.Debian
-#
+ gzip -9v debian/tmp/usr/doc/slib/changelog.Debian
+
$(INSTALL_DATA) ChangeLog debian/tmp/usr/doc/slib
- gzip -9 debian/tmp/usr/doc/slib/ChangeLog
+ gzip -9v debian/tmp/usr/doc/slib/ChangeLog
$(INSTALL_DATA) README debian/tmp/usr/doc/slib
+ gzip -9v debian/tmp/usr/doc/slib/README
$(INSTALL_DATA) FAQ debian/tmp/usr/doc/slib
+ gzip -9v debian/tmp/usr/doc/slib/FAQ
$(INSTALL_DATA) slib.html debian/tmp/usr/doc/slib
-#
- $(INSTALL_DIR) debian/tmp/usr/doc/slib/init
- $(INSTALL_DATA) *.init debian/tmp/usr/doc/slib/init
+
+ $(INSTALL_DIR) debian/tmp/usr/lib/slib/init
+ $(INSTALL_DATA) *.init debian/tmp/usr/lib/slib/init
+
# info pages
$(INSTALL_DIR) debian/tmp/usr/info
$(INSTALL_DATA) slib.info* debian/tmp/usr/info
- gzip -9 debian/tmp/usr/info/*
-#
- dpkg-gencontrol -isp -pslib -Pdebian/tmp
+ gzip -9v debian/tmp/usr/info/*
+
+# slibconfig
+
+ $(INSTALL_DIR) debian/tmp/usr/sbin
+ $(INSTALL_PROGRAM) debian/slibconfig debian/tmp/usr/sbin
+ $(INSTALL_DIR) debian/tmp/usr/man/man8
+ (cd debian/tmp/usr/man/man8; \
+ ln -s ../man7/undocumented.7.gz slibconfig.8.gz \
+ )
+
+ dpkg-gencontrol
dpkg --build debian/tmp ..
define checkdir