merge a bit with Sun version
[unix-history] / usr / src / usr.sbin / sendmail / Makefile
index b432c19..e9527c5 100644 (file)
@@ -1,34 +1,36 @@
-#
-# Copyright (c) 1988 The Regents of the University of California.
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms are permitted
-# provided that the above copyright notice and this paragraph are
-# duplicated in all such forms and that any documentation,
-# advertising materials, and other materials related to such
-# distribution and use acknowledge that the software was developed
-# by the University of California, Berkeley.  The name of the
-# University may not be used to endorse or promote products derived
-# from this software without specific prior written permission.
-# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
-# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
-# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
-#
-#      @(#)Makefile    4.14 (Berkeley) %G%
-#
-SUBDIR=        lib src aux
+#       @(#)Makefile   8.6 (Berkeley) %G%
 
 
-all: ${SUBDIR}
+SUBDIR= src mailstats makemap praliases cf/cf
+FTPDIR=        barad-dur:/disks/barad-dur/ftp/sendmail/.
+VER=   XX
 
 
-${SUBDIR}: FRC
-       cd $@; make ${MFLAGS}
+tar: Files.base Files.cf Files.misc Files.xdoc
+       (cd src; sccs check)
+       (cd doc/op; sccs check)
+       (cd doc/intro; sccs check)
+       (cd doc/usenix; sccs check)
+       (cd cf; sccs check)
+       (cd cf/m4; sccs check)
+       (cd cf/mailer; sccs check)
+       (cd cf/feature; sccs check)
+       (cd cf/cf; sccs check)
+       (cd cf/ostype; sccs check)
+       (cd cf/domain; sccs check)
+       (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})
+       chmod +x src/makesendmail
+       pax -w -x tar -L -f sendmail.${VER}.base.tar `grep -v ^# Files.base`
+       compress sendmail.${VER}.base.tar
+       pax -w -x tar -L -f sendmail.${VER}.cf.tar `grep -v ^# Files.cf`
+       compress sendmail.${VER}.cf.tar
+       pax -w -x tar -L -f sendmail.${VER}.misc.tar `grep -v ^# Files.misc`
+       compress sendmail.${VER}.misc.tar
+       pax -w -x tar -L -f sendmail.${VER}.xdoc.tar `grep -v ^# Files.xdoc`
+       compress sendmail.${VER}.xdoc.tar
 
 
-clean cleandir depend: FRC
-       for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} clean); done
-
-install: FRC
-       -mkdir ${DESTDIR}/usr/spool/mqueue
-       chown root.wheel ${DESTDIR}/usr/spool/mqueue
-       chmod 775 ${DESTDIR}/usr/spool/mqueue
-       for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} install); done
+ftp: sendmail.${VER}.base.tar.Z sendmail.${VER}.cf.tar.Z sendmail.${VER}.misc.tar.Z sendmail.${VER}.xdoc.tar.Z
+       rcp sendmail.${VER}.*.tar.Z RELEASE_NOTES FAQ KNOWNBUGS ${FTPDIR}
 
 
+.include <bsd.subdir.mk>