path: root/debian/rules
diff options
authorThomas Bushnell, BSG <tb@debian.org>2005-11-02 14:55:21 -0800
committerBryan Newbold <bnewbold@robocracy.org>2017-02-20 00:05:32 -0800
commit34c54a22ff7818bb8b38ef4d9c87dbbcb221ba73 (patch)
tree1189d06a81277bcf8539b0260a69a19f6038effb /debian/rules
parent611b3db17894e5fdc0db3d49eaf6743d27b44233 (diff)
parent5145dd3aa0c02c9fc496d1432fc4410674206e1d (diff)
Import Debian changes 3a2-1debian/3a2-1
slib (3a2-1) unstable; urgency=low * New upstream release. * Acknowledge NMU. (Closes: #281809) * Makefile: Don't hack Makefile; use rules instead. * debian/rules: Set on make invocations: prefix, htmldir, TEXI2HTML. * debian/rules (clean): Clean more stuff here. * Makefile: Comment out old rule for $(htmldir)slib_toc.html. Instead, specify directly that the texi2html invocation produces that file. * debian/rules (binary-indep): Find web files in slib subdir. * debian/control (Build-Depends-Indep): Go back to using scm.
Diffstat (limited to 'debian/rules')
1 files changed, 15 insertions, 3 deletions
diff --git a/debian/rules b/debian/rules
index ed0da6b..b6ad478 100755
--- a/debian/rules
+++ b/debian/rules
@@ -17,10 +17,16 @@ 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 definitions in upstream Makefile thus:
+prefix = debian/tmp/usr
+htmldir = slib/
+TEXI2HTML = texi2html --split chapter --verbose
+makeoverrides = "prefix=$(prefix)" "htmldir=$(htmldir)" "TEXI2HTML=$(TEXI2HTML)"
- make
- make html
+ make $(makeoverrides)
+ make html $(makeoverrides)
touch build
@@ -29,6 +35,12 @@ clean:
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
@@ -62,7 +74,7 @@ binary-indep: checkroot build
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) slib_html/*.html debian/tmp/usr/share/doc/slib
+ $(INSTALL_DATA) slib/*.html debian/tmp/usr/share/doc/slib
$(INSTALL_DIR) debian/tmp/usr/share/slib/init
$(INSTALL_DATA) *.init debian/tmp/usr/share/slib/init