docbasedir := $(prefix)/usr/share/doc-base
# tool abstraction
-install_file := install -o root -g root -m 644
-install_script := install -o root -g root -m 755
+install_file := install -o root -g root -m 644 -p
+install_script := install -o root -g root -m 755 -p
make_directory := install -d -o root -g root -m 755
compress := gzip -9f
build: developers-reference.sgml
$(checkdir)
- #./debian/rules source-depends
+# ./debian/rules source-depends
rm -f version.ent
echo "<!entity version \"$(DEB_VERSION)\">" >> version.ent
echo "<!entity date \"$(DATE)\">" >> version.ent
binary-indep: build
$(checkdir)
+ $(checkroot)
rm -rf $(prefix)
$(make_directory) $(prefix)/DEBIAN
$(make_directory) $(docdir) $(libdir) $(sharedir) $(docbasedir)
$(install_file) debian/changelog $(docdir)
$(install_file) developers-reference.desc $(docbasedir)/$(package)
- # make sure control files are good
+# make sure control files are good
sh -n debian/postinst
sh -n debian/prerm
- # install the control files
+# install the control files
$(install_script) debian/control debian/postinst debian/prerm \
$(prefix)/DEBIAN/
- # compress docdir (policy)
+# compress docdir (policy)
find $(docdir) -type f \( -size +4k -or -iname "change*" \) \
! -name "*.html" ! -name "*.gif" \
! -name "copyright" | xargs $(compress)
dpkg-gencontrol -isp
dpkg --build $(prefix) ..
- # some extra-package files
+# some extra-package files
$(install_file) developers-reference.ps ../
$(compress) ../developers-reference.ps
dpkg-distaddfile -fdebian/files developers-reference.ps.gz byhand -
define checkdir
test -f debian/rules
+ test -f developers-reference.sgml
endef
+# Below here is fairly generic really
+
define checkroot
test `id -u` = 0
endef
-# Below here is fairly generic really
-
binary: binary-indep binary-arch
.PHONY: binary binary-arch binary-indep clean
+
+#Local variables:
+#mode: makefile
+#End: