# @(#)Makefile 2.1 88/08/11 4.0 RPCSRC
# Build and install everything.
# These directories are presumed to exist in DESTDIR:
# /usr/lib /usr/bin /usr/include
# These are not used by BSD except portmap which lives in
# /usr/src/usr.sbin/portmap.
# SUBDIR= rpcgen etc rpcsvc
all install: rpclib
${SUBDIR}
@echo
"Building and installing RPC library"
cd rpc
; $(MAKE
) ${MFLAGS} all DESTDIR
=${DESTDIR}; \
$(MAKE
) ${MFLAGS} install DESTDIR
=${DESTDIR}
@echo
"Building and installing files from: $@"
cd
$@
; $(MAKE
) ${MFLAGS} DESTDIR
=${DESTDIR} CFLAGS
=${CFLAGS};\
$(MAKE
) ${MFLAGS} install DESTDIR
=${DESTDIR}