head	1.6;
access;
symbols;
locks; strict;
comment	@# @;


1.6
date	94.05.21.17.27.33;	author md;	state Exp;
branches;
next	1.5;

1.5
date	94.03.27.18.27.32;	author roger;	state Exp;
branches;
next	1.4;

1.4
date	93.02.28.14.34.13;	author roger;	state Exp;
branches;
next	1.3;

1.3
date	92.12.09.22.26.25;	author md;	state Exp;
branches;
next	1.2;

1.2
date	92.11.29.16.40.17;	author md;	state Exp;
branches;
next	1.1;

1.1
date	88.12.09.19.25.05;	author md;	state Exp;
branches;
next	;


desc
@@


1.6
log
@Add pp4216
@
text
@
SUBDIR=	lib aedtest afpacode dos fdformat ftc kbdlock pf sym whichfpa pp4216

beforeinstall:
	-mkdir ${DESTDIR}/${BINDIR}

.if exists(${.CURDIR}/Makefile.inc)
.include "${.CURDIR}/Makefile.inc"
.endif
.include <bsd.subdir.mk>
@


1.5
log
@An install from this level will attempt to create DESTDIR/usr/ibm,
in case it doesn't exist.
@
text
@d2 1
a2 1
SUBDIR=	lib aedtest afpacode dos fdformat ftc kbdlock pf sym whichfpa
@


1.4
log
@changed to RENO-style layout.
@
text
@d4 6
@


1.3
log
@Remove declaration of DESTDIR in Makefile
@
text
@a0 10
#
# $Source: /usr/src/ibm/RCS/Makefile,v $
# $Header: /usr/src/ibm/RCS/Makefile,v 1.2 1992/11/29 16:40:17 md Exp md $
# $ACIS:Makefile_ca 12.0$
#
CFLAGS=-I. -I../sys/rt -O -w
IFLAGS=-c -s
#DESTDIR=
#SUBDIR= aedtest fdb lib pprint lpfilter rvd proff bitprt cookie fortuned
SUBDIR= aedtest lib
d2 1
a2 8
# Shell scripts that need only be installed and are never removed.
#
SHSCRIPT=support mergesym
#
STD=	afpacode cvtsym omerge makesym pf kbdlock untty ftc whichfpa fdformat
NONSTD=	dosread
DOSLINKS=dosdir doswrite dosdel
DIR=/usr/ibm
d4 1
a4 44
all: ${STD} ${NONSTD} ${SUBDIR}

clean:
	rm -f ${STD} ${NONSTD} ${DOSLINKS} *.o
	for i in ${SUBDIR}; do \
		(cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} clean ); done

${STD}: 
	${CC} -o $@@ $?

afpacode:	afpacode.o

cvtsym: cvtsym.o
omerge: omerge.o
makesym: makesym.o
pf: pf.o
kbdlock: kbdlock.o
untty: untty.o
ftc: ftc.o
whichfpa:	whichfpa.o
fdformat:	fdformat.o

dosread: dosread.o match.o
	$(CC) -o $@@ dosread.o match.o

$(SUBDIR): FRC
	cd $@@; make ${MFLAGS}

FRC:

install: all ${DESTDIR}/${DIR}
	install -c -m 444 keyboard_codes ${DESTDIR}/usr/libdata/keyboard_codes
	for i in ${STD} ${NONSTD} ; do \
		install ${IFLAGS} $$i ${DESTDIR}/${DIR}/$$i; done
	for i in ${DOSLINKS}; do \
		(cd ${DESTDIR}/${DIR}; rm -f $$i; ln -s dosread $$i); done
	for i in ${SUBDIR}; do \
		(cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); done
	for i in ${SHSCRIPT}; do \
		(install -c $$i.sh ${DESTDIR}/${DIR}/$$i); done

${DESTDIR}/${DIR}:
	mkdir ${DESTDIR}/${DIR}
	chmod 755 ${DESTDIR}/${DIR}
@


1.2
log
@changes to only build useful things on Reno.
@
text
@d3 1
a3 1
# $Header: /usr/src/ibm/RCS/Makefile,v 1.1 1988/12/09 19:25:05 md Exp md $
d8 1
a8 1
DESTDIR=
@


1.1
log
@Initial revision
@
text
@d2 2
a3 2
# $Source: /ibm/acis/usr/src/ibm/RCS/Makefile_ca,v $
# $Header:Makefile_ca 12.0$
d6 1
a6 1
CFLAGS=-I. -O
d9 2
a10 1
SUBDIR= aedtest fdb lib pprint lpfilter rvd proff bitprt cookie fortuned
d16 1
a16 1
STD=	afpacode cvtsym omerge makesym pf kbdlock untty ftc whichfpa
d41 1
d52 1
a52 1
	install -c -m 444 keyboard_codes ${DESTDIR}/usr/lib/keyboard_codes
@
