new template
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sun, 13 Dec 1987 09:25:01 +0000 (01:25 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sun, 13 Dec 1987 09:25:01 +0000 (01:25 -0800)
SCCS-vsn: old/vpr/Makefile 5.8
SCCS-vsn: old/Makefile 1.2

usr/src/old/Makefile
usr/src/old/vpr/Makefile

index 1e1b3b2..e2ef6b1 100644 (file)
@@ -1,17 +1,26 @@
-# Kludge Makefile to make just uncompact
-
+#
+# Copyright (c) 1987 Regents of the University of California.
+# All rights reserved.  The Berkeley software License Agreement
+# specifies the terms and conditions for redistribution.
+#
+#      @(#)Makefile    1.2     (Berkeley)      %G%
+#
 DESTDIR=
 DESTDIR=
+SUBDIR=        man compact
 
 
-all: FRC
-       cd compact; make ${MFLAGS} uncompact
+all: ${SUBDIR}
 
 
-depend:
+${SUBDIR}: FRC
+       cd $@; make ${MFLAGS}
 
 install: FRC
 
 install: FRC
-       cd compact; install -s uncompact ${DESTDIR}/usr/old
+       -for i in ${SUBDIR}; do \
+               (cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); done
 
 clean: FRC
 
 clean: FRC
-       cd compact; make ${MFLAGS} clean
+       -for i in ${SUBDIR}; do (echo $$i; cd $$i; make ${MFLAGS} clean); done
 
 
-FRC:
+depend:
+       -for i in ${SUBDIR}; do (echo $$i; cd $$i; make ${MFLAGS} depend); done
 
 
+FRC:
index a318450..d62bba1 100644 (file)
@@ -1,61 +1,88 @@
+#
+# Copyright (c) 1987 Regents of the University of California.
+# All rights reserved.  The Berkeley software License Agreement
+# specifies the terms and conditions for redistribution.
+#
 #      @(#)Makefile    5.8     (Berkeley)      %G%
 #
 #      @(#)Makefile    5.8     (Berkeley)      %G%
 #
-DESTDIR=
-CFLAGS=-O 
-SOURCES=sidebyside.c vcat.c vpac.c vpd.c vpf.c vfontinfo.c \
-       vpq.c vpr.c vprm.c vsort.c rvcat.c rvsort.c vdmp.c
-OBJS=sidebyside vcat vpac vad vpd vpf vfontinfo \
-       vpq vpr vprm vsort rvcat rvsort vdmp
-
-all:   $(OBJS)
-
-sidebyside: sidebyside.c
-       cc -O -o sidebyside sidebyside.c
-vfontinfo: vfontinfo.c
-       cc -O -o vfontinfo vfontinfo.c
-vcat: vcat.c
-       cc -O -o vcat vcat.c
-vpac: vpac.c
-       cc -O -o vpac vpac.c
-vad: vpd.c
-       cc -DVARIAN -O -o vad vpd.c
-vpd: vpd.c
-       cc -DVERSATEC -O -o vpd vpd.c
-vpf: vpf.c
-       cc -O -o vpf vpf.c
-vpq: vpq.c
-       cc -O -o vpq vpq.c
-vpr: vpr.c
-       cc -O -o vpr vpr.c
-vprm: vprm.c
-       cc -O -o vprm vprm.c
-vsort: vsort.c
-       cc -O -o vsort vsort.c
-rvsort: rvsort.c
-       cc -O -o rvsort rvsort.c
-rvcat: rvcat.c
-       cc -O -o rvcat rvcat.c
-vdmp: vdmp.c
-       cc -O -o vdmp vdmp.c
-
-install: all
-       install -s sidebyside ${DESTDIR}/usr/lib/sidebyside
-       install -s vcat ${DESTDIR}/usr/lib/vcat
-       install -s vpac ${DESTDIR}/etc/vpac
-       install -s vad ${DESTDIR}/usr/lib/vad
-       install -s vpd ${DESTDIR}/usr/lib/vpd
-       install -s vpf ${DESTDIR}/usr/lib/vpf
-       install -s vpq ${DESTDIR}/usr/lib/vpq
-       install -s vpr ${DESTDIR}/usr/lib/vpr
-       install -s vprm ${DESTDIR}/usr/lib/vprm
-       install -s vsort ${DESTDIR}/usr/lib/vsort
-       install -s rvsort ${DESTDIR}/usr/lib/rvsort
-       install -s rvcat ${DESTDIR}/usr/lib/rvcat
-       install -s vdmp ${DESTDIR}/usr/lib/vdmp
-       install -s vfontinfo ${DESTDIR}/usr/lib/vfontinfo
-
-clean:
-       rm -f ${OBJS} *.o
-
-vprintall:
-       csh /usr/ucb/vprint ${SOURCES}
+CFLAGS=        -O
+LIBC=  /lib/libc.a
+SUBDIR=        vtools vtools/fed
+SHELLS=        rvtroff.sh vprint.sh vtroff.sh vpq.sh vpr.sh vprm.sh
+SRCS=  vpac.c vpd.c vpq.c vpr.c vprm.c
+OBJS=  vpac.o vpd.o vpq.o vpr.o vprm.o
+ALL=   vpac vpd vpq vpr vprm
+
+all: ${ALL} subdir
+
+subdir:
+       for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS}); done
+
+vpac: ${LIBC}
+       ${CC} -O -o $@ vpac.c
+vpd: ${LIBC}
+       ${CC} -DVERSATEC -O -o $@ vpd.c
+vpq: ${LIBC}
+       ${CC} -O -o $@ vpq.c
+vpr: ${LIBC}
+       ${CC} -O -o $@ vpr.c
+vprm: ${LIBC}
+       ${CC} -O -o $@ vprm.c
+
+clean: FRC
+       rm -f ${OBJS} core ${ALL}
+       for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} clean); done
+
+depend: FRC ldepend
+       for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} depend); done
+
+ldepend:
+       mkdep -p ${CFLAGS} ${SRCS}
+
+install: FRC
+       for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} install); done
+       install -s -o bin -g bin -m 755 vpac ${DESTDIR}/usr/old/vpac
+       install -s -o bin -g bin -m 755 vpd ${DESTDIR}/usr/lib/vpd
+       install -s -o bin -g bin -m 755 vpq ${DESTDIR}/usr/lib/vpq
+       install -s -o bin -g bin -m 755 vpr ${DESTDIR}/usr/lib/vpr
+       install -s -o bin -g bin -m 755 vprm ${DESTDIR}/usr/lib/vprm
+       install -c -o bin -g bin -m 755 vprint.sh ${DESTDIR}/usr/old/vprint
+       install -c -o bin -g bin -m 755 vtroff.sh ${DESTDIR}/usr/old/vtroff
+       install -c -o bin -g bin -m 755 vpq.sh ${DESTDIR}/usr/old/vpq
+       install -c -o bin -g bin -m 755 vpr.sh ${DESTDIR}/usr/old/vpr
+       install -c -o bin -g bin -m 755 vprm.sh ${DESTDIR}/usr/old/vprm
+
+lint: FRC
+       for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} lint); done
+       lint ${CFLAGS} ${SRCS}
+
+tags: FRC
+       for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} tags); done
+       ctags ${SRCS}
+
+FRC:
+
+# DO NOT DELETE THIS LINE -- mkdep uses it.
+# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
+
+vpac: vpac.c /usr/include/stdio.h
+vpd: vpd.c /usr/include/stdio.h /usr/include/sys/param.h
+vpd: /usr/include/sys/types.h /usr/include/signal.h /usr/include/machine/trap.h
+vpd: /usr/include/machine/machparam.h /usr/include/sys/dir.h
+vpd: /usr/include/signal.h /usr/include/sys/stat.h /usr/include/sgtty.h
+vpd: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h
+vpd: /usr/include/sys/ttydev.h /usr/include/errno.h /usr/include/sys/vcmd.h
+vpd: /usr/include/sys/wait.h
+vpq: vpq.c /usr/include/sys/param.h /usr/include/sys/types.h
+vpq: /usr/include/signal.h /usr/include/machine/trap.h
+vpq: /usr/include/machine/machparam.h /usr/include/sys/dir.h
+vpq: /usr/include/sys/stat.h /usr/include/stdio.h /usr/include/errno.h
+vpr: vpr.c /usr/include/signal.h /usr/include/machine/trap.h
+vpr: /usr/include/sys/param.h /usr/include/sys/types.h /usr/include/signal.h
+vpr: /usr/include/machine/machparam.h
+vprm: vprm.c /usr/include/sys/param.h /usr/include/sys/types.h
+vprm: /usr/include/signal.h /usr/include/machine/trap.h
+vprm: /usr/include/machine/machparam.h /usr/include/sys/dir.h
+vprm: /usr/include/sys/stat.h /usr/include/stdio.h
+
+# IF YOU PUT ANYTHING HERE IT WILL GO AWAY