ignore -t in -bd mode
[unix-history] / usr / src / usr.sbin / sendmail / Makefile
index 57c4371..3fc518f 100644 (file)
@@ -1,11 +1,16 @@
-#       @(#)Makefile   8.9 (Berkeley) %G%
+#       @(#)Makefile   8.12 (Berkeley) %G%
 
 
+VER=   XX
 SUBDIR= src mailstats makemap praliases cf/cf
 FTPDIR=        mastodon:/disks/barad-dur/ftp/sendmail/.
 SUBDIR= src mailstats makemap praliases cf/cf
 FTPDIR=        mastodon:/disks/barad-dur/ftp/sendmail/.
-VER=   XX
+DISTFILES=sendmail.${VER}.tar.Z sendmail.${VER}.tar.gz \
+       RELEASE_NOTES FAQ KNOWNBUGS
 FILES= Files.base Files.cf Files.misc Files.xdoc
 
 FILES= Files.base Files.cf Files.misc Files.xdoc
 
-tar: Files.base Files.cf Files.misc Files.xdoc
+tar: sccs-check compile-world run-pax
+
+sccs-check:
+       sccs check
        (cd src; sccs check)
        (cd doc/op; sccs check)
        (cd doc/intro; sccs check)
        (cd src; sccs check)
        (cd doc/op; sccs check)
        (cd doc/intro; sccs check)
@@ -17,16 +22,24 @@ tar: Files.base Files.cf Files.misc Files.xdoc
        (cd cf/cf; sccs check)
        (cd cf/ostype; sccs check)
        (cd cf/domain; sccs check)
        (cd cf/cf; sccs check)
        (cd cf/ostype; sccs check)
        (cd cf/domain; sccs check)
+
+compile-world:
        (cd src; ${MAKE})
        (cd doc; PRINTER=ps ${MAKE})
        (cd doc; chmod 444 op/op.ps intro/intro.ps usenix/usenix.ps)
        (cd cf/cf; ${MAKE})
        (cd src; ${MAKE})
        (cd doc; PRINTER=ps ${MAKE})
        (cd doc; chmod 444 op/op.ps intro/intro.ps usenix/usenix.ps)
        (cd cf/cf; ${MAKE})
+
+run-pax: Files.base Files.cf Files.misc Files.xdoc
        chmod +x src/makesendmail
        chmod +x src/makesendmail
-       pax -w -x tar -L -s ,^,sendmail-${VER}/, -f sendmail.${VER}.tar \
+       pax -w -x tar -L \
+               -s ",cf/domain/unspecified-domain,sendmail-${VER}/cf/domain/berkeley-only,p" \
+               -s ",^,sendmail-${VER}/," \
+               -f sendmail.${VER}.tar \
                `cat ${FILES} | grep -v ^#`
                `cat ${FILES} | grep -v ^#`
+       gzip -c sendmail.${VER}.tar > sendmail.${VER}.tar.gz
        compress sendmail.${VER}.tar
 
 ftp: sendmail.${VER}.tar.Z
        compress sendmail.${VER}.tar
 
 ftp: sendmail.${VER}.tar.Z
-       rcp sendmail.${VER}.tar.Z RELEASE_NOTES FAQ KNOWNBUGS ${FTPDIR}
+       rcp ${DISTFILES} ${FTPDIR}
 
 .include <bsd.subdir.mk>
 
 .include <bsd.subdir.mk>