summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules10
1 files changed, 9 insertions, 1 deletions
diff --git a/debian/rules b/debian/rules
index a1af635..43497be 100755
--- a/debian/rules
+++ b/debian/rules
@@ -27,6 +27,7 @@ LDFLAGS = -s
PREFIX = /usr
BINDIR = $(PREFIX)/bin
MANDIR = $(PREFIX)/man
+INFODIR = $(PREFIX)/share/info
DOCDIR = $(PREFIX)/share/doc/$(package)
DOCDIR-DEV = $(PREFIX)/doc/$(package-dev)
@@ -39,6 +40,7 @@ STAMPS_TO_CLEAN = stamp-build stamp-configure
install_file = install -o root -g root -m 644
install_program = install -s -o root -g root -m 755
+install_script = install -o root -g root -m 755
make_directory = install -d -o root -g root -m 755
define checkdir
@@ -144,6 +146,7 @@ all build: stamp-build stamp-build-dbg
stamp-build: stamp-configure
$(checkdir)
cd build && $(MAKE)
+ cd build/doc && $(MAKE)
touch stamp-build
stamp-build-dbg: stamp-configure-dbg
@@ -194,12 +197,15 @@ binary-gnumach: stamp-build
$(checkroot)
-rm -rf debian/tmp
- $(make_directory) debian/tmp/DEBIAN debian/tmp$(DOCDIR)
+ $(make_directory) debian/tmp/DEBIAN debian/tmp$(DOCDIR) debian/tmp$(INFODIR)
pfx=`cd debian/tmp && pwd` && cd build && $(MAKE) install-kernel prefix=$$pfx
strip --strip-all debian/tmp/boot/gnumach
gzip -9fq debian/tmp/boot/gnumach
-find debian/tmp -type d | xargs chmod g-w
+ $(install_file) build/doc/mach.info* debian/tmp$(INFODIR)
+ -gzip -9frq debian/tmp$(INFODIR)
+
$(install_file) README debian/tmp$(DOCDIR)
$(install_file) NEWS debian/tmp$(DOCDIR)
@@ -213,6 +219,8 @@ binary-gnumach: stamp-build
$(install_file) debian/copyright debian/tmp$(DOCDIR)
ln -s ChangeLog.gz debian/tmp$(DOCDIR)/changelog.gz
+ $(install_script) debian/postinst debian/tmp/DEBIAN
+ $(install_script) debian/prerm debian/tmp/DEBIAN
dpkg-gencontrol -isp -p$(package) -Pdebian/tmp
chown -R root.root debian/tmp
dpkg --build debian/tmp ..