SCCS-vsn: bin/Makefile 5.3
# All rights reserved. The Berkeley software License Agreement
# specifies the terms and conditions for redistribution.
#
# All rights reserved. The Berkeley software License Agreement
# specifies the terms and conditions for redistribution.
#
-# @(#)Makefile 5.2 (Berkeley) %G%
+# @(#)Makefile 5.3 (Berkeley) %G%
# C programs that live in the current directory and do not need
# explicit make lines.
#
# C programs that live in the current directory and do not need
# explicit make lines.
#
-STD= ar cat cc chgrp chmod cmp date dd df du echo ed expr \
- grep hostid hostname kill ld ln login ls mail mkdir mt nice \
- nm od pagesize passwd pr pwd rm rmail rmdir size strip stty su sync \
- tar tee test time wall who write
+STD= ar cat cc chmod cmp dd du echo ed expr grep hostid hostname \
+ kill ld ln ls mkdir mt nice nm od pagesize pr pwd rm rmail \
+ rmdir size strip stty sync tar tee test time wall who write
# C programs that live in the current directory and need explicit make lines.
#
# C programs that live in the current directory and need explicit make lines.
#
# Programs that must run setuid to root
#
# Programs that must run setuid to root
#
${SUBDIR}: /tmp
cd $@; make ${MFLAGS}
${SUBDIR}: /tmp
cd $@; make ${MFLAGS}
${CC} ${CFLAGS} -o $@ $@.c
# take care with cp and mv, install uses them
${CC} ${CFLAGS} -o $@ $@.c
# take care with cp and mv, install uses them
(cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); done
-for i in ${SCRIPT}; do (install -c $$i.sh ${DESTDIR}/bin/$$i); done
-for i in ${STD} ${NSTD}; do (install -s $$i ${DESTDIR}/bin/$$i); done
(cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); done
-for i in ${SCRIPT}; do (install -c $$i.sh ${DESTDIR}/bin/$$i); done
-for i in ${STD} ${NSTD}; do (install -s $$i ${DESTDIR}/bin/$$i); done
- -for i in ${SETUID}; do (chown root ${DESTDIR}/bin/$$i; \
- chmod 4755 ${DESTDIR}/bin/$$i); done
- -for i in ${KMEM}; do (chgrp kmem ${DESTDIR}/bin/$$i; \
- chmod 2755 ${DESTDIR}/bin/$$i); done
+ -for i in ${SETUID}; do \
+ (install -o root -m 4755 -s $$i ${DESTDIR}/bin/$$i); done
+ -for i in ${KMEM}; do \
+ (install -g kmem -m 2755 -s $$i ${DESTDIR}/bin/$$i); done
rm -f ${DESTDIR}/bin/[; ln ${DESTDIR}/bin/test ${DESTDIR}/bin/[
rm -f ${DESTDIR}/bin/e; ln ${DESTDIR}/bin/ed ${DESTDIR}/bin/e
rm -f ${DESTDIR}/bin/chfn; ln ${DESTDIR}/bin/passwd ${DESTDIR}/bin/chfn
rm -f ${DESTDIR}/bin/[; ln ${DESTDIR}/bin/test ${DESTDIR}/bin/[
rm -f ${DESTDIR}/bin/e; ln ${DESTDIR}/bin/ed ${DESTDIR}/bin/e
rm -f ${DESTDIR}/bin/chfn; ln ${DESTDIR}/bin/passwd ${DESTDIR}/bin/chfn
cmp: cmp.c
cmp: /usr/include/stdio.h
cmp: /usr/include/ctype.h
cmp: cmp.c
cmp: /usr/include/stdio.h
cmp: /usr/include/ctype.h
-date: date.c
-date: /usr/include/stdio.h
-date: /usr/include/sys/time.h
-date: /usr/include/utmp.h
dd: dd.c
dd: /usr/include/stdio.h
dd: /usr/include/signal.h
dd: dd.c
dd: /usr/include/stdio.h
dd: /usr/include/signal.h