fix bug in envp handling in main(); always put trailing dot on
[unix-history] / usr / src / usr.sbin / sendmail / Makefile
index a073a19..7d51076 100644 (file)
@@ -1,33 +1,10 @@
-#
-# Copyright (c) 1988 Regents of the University of California.
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms are permitted
-# provided that this notice is preserved and that due credit is given
-# to the University of California at 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'' without express or implied warranty.
-#
-#      @(#)Makefile    4.13 (Berkeley) %G%
-#
-SUBDIR=        lib src aux
+#       @(#)Makefile   4.16 (Berkeley) %G%
 
 
-all: ${SUBDIR}
+SUBDIR= mailstats praliases
 
 
-${SUBDIR}: FRC
-       cd $@; make ${MFLAGS}
+# don't trivially install sendmail
+.if !make(install)
+SUBDIR+=src
+.endif
 
 
-clean: FRC
-       for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} clean); done
-
-depend: FRC
-       for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} depend); 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
-
-FRC:
+.include <bsd.subdir.mk>