chiark / gitweb /
housekeeping
authoraph <aph@313b444b-1b9f-4f58-a734-7bb04f332e8d>
Wed, 3 Mar 1999 20:21:25 +0000 (20:21 +0000)
committeraph <aph@313b444b-1b9f-4f58-a734-7bb04f332e8d>
Wed, 3 Mar 1999 20:21:25 +0000 (20:21 +0000)
git-svn-id: svn://anonscm.debian.org/ddp/manuals/trunk/developers-reference@792 313b444b-1b9f-4f58-a734-7bb04f332e8d

debian/rules

index bb16d83d67265f1b8f08556b57b708463e67f5c6..6f7d08063927713ae4370f60878bb340d6a59b43 100755 (executable)
@@ -15,8 +15,8 @@ sharedir      := $(prefix)/usr/share/$(package)
 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
 
@@ -40,7 +40,7 @@ source-depends:
 
 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
@@ -65,6 +65,7 @@ clean:
 
 binary-indep:  build
        $(checkdir)
+       $(checkroot)
        rm -rf $(prefix)
        $(make_directory) $(prefix)/DEBIAN
        $(make_directory) $(docdir) $(libdir) $(sharedir) $(docbasedir)
@@ -78,14 +79,14 @@ binary-indep:       build
        $(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)
@@ -93,7 +94,7 @@ binary-indep: build
        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 -
@@ -112,14 +113,19 @@ binary-arch:      build
 
 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: