[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / xsrc

File: [cvs.NetBSD.org] / xsrc / Makefile (download)

Revision 1.5, Mon May 24 00:05:37 1999 UTC (23 years, 4 months ago) by tv
Branch: MAIN
CVS Tags: netbsd-1-4-PATCH001
Changes since 1.4: +9 -9 lines

Move "build" rule so that default is "all".

#	$NetBSD: Makefile,v 1.5 1999/05/24 00:05:37 tv Exp $
#
# build and install xsrc

all: all-xc all-contrib

all-xc:
.if exists(xc/xmakefile)
	@cd xc && ${MAKE} -f xmakefile World
.else
	@cd xc && ${MAKE} World
.endif

all-contrib:
.if !exists(contrib/Makefile)
	@cd contrib && PATH=../xc/config/imake:$$PATH \
	    sh ../xc/config/util/xmkmf -a ../xc ../contrib
.endif
	@cd contrib && ${MAKE}

install: install-xc install-contrib

install-xc:
	@cd xc && ${MAKE} install && ${MAKE} install.man

install-contrib:
	@cd contrib && ${MAKE} install && ${MAKE} install.man

clean cleandir distclean:
	@cd xc && ${MAKE} clean
	@-cd contrib && ${MAKE} clean

build:
.if exists(xc/xmakefile)
	@echo ""
	@echo "Warning:  This does not rebuild from a clean tree."
	@echo "Use 'make clean' first if you want to start from scratch."
	@echo ""
.endif
	@${MAKE} all install