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

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

Revision 1.1.1.1 (vendor branch), Mon Feb 28 02:17:52 2000 UTC (22 years, 2 months ago) by wrstuden
Branch: NAS, MAIN
CVS Tags: nastore3-beta-20000227, HEAD
Changes since 1.1: +0 -0 lines

Import of snapshot of nastore3 code. Includes kernel code for dmfs, dmfs
user utilities, ms66 import and export, vvm, and volman. Also includes
makefile magic to automatically generate .tgz source files from the source.
Solaris support a bit of a question as zoularis is not working at the
moment.

#
# $Id: Makefile,v 1.1.1.1 2000/02/28 02:17:52 wrstuden Exp $
#

all:
	@echo "================================================================"
	@echo ""
	@echo "  Make one or more of these targets, depending on what"
	@echo "  the machine is to be used for:"
	@echo ""
	@echo "    vold === volume manager daemon and repository controllers"
	@echo "    vvmd === virtual volume manager daemon"
	@echo "    tps  === tape servers (for volume mgr and vvmd drive access)"
	@echo "    rash === rapid access storage hierarchy"
	@echo ""
	@echo "  append 'install' (e.g. 'voldinstall') as desired"
	@echo ""
	@echo "================================================================"

install:	all

#
# Start listing the packages we know about, and what they depend on.
#

SUBDIRS+= nasutil

nasutil:
	(cd nasutil; make obj; make depend && make && make install)

.PHONY: nasutil

SUBDIRS+= volman/lib

volman-lib: nasutil
	(cd volman/lib; make obj; make depend && make && make install)

SUBDIRS+= vvm/lib

vvm-lib: nasutil volman-lib
	(cd vvm/lib; make obj; make depend && make && make install)

SUBDIRS+= volman/srvr/lib

volman-srvlib: nasutil volman-lib
	(cd volman/srvr/lib; make obj; make depend && make && make install)

SUBDIRS+= volman/srvr/rc/lib

volman-rclib: volman-srvlib
	(cd volman/srvr/rc/lib; make obj; make depend && make && make install)

SUBDIRS+= rash/lib

dmfs-lib: nasutil vvm-lib
	(cd rash/lib; make obj; make depend && make && make install)

SUBDIRS+= volman/srvr/admin

volman-admin: volman-lib volman-srvlib
	(cd volman/srvr/admin; make obj; make depend && make && make install)

SUBDIRS+= volman/clnt

volman-clnt: volman-lib
	(cd volman/clnt; make obj; make depend && make && make install)

SUBDIRS+= volman/srvr/master

volman-master: volman-lib volman-srvlib
	(cd volman/srvr/master; make obj; make depend && make && make install)

SUBDIRS+= volman/srvr/server

volman-server: volman-lib volman-srvlib
	(cd volman/srvr/server; make obj; make depend && make && make install)

SUBDIRS+= volman/srvr/rc/ch

volman-rc-ch: volman-rclib
	(cd volman/srvr/rc/ch; make obj; make depend && make && make install)

SUBDIRS+= volman/srvr/rc/vault

volman-rc-vault: volman-rclib
	(cd volman/srvr/rc/vault; make obj; make depend && make && make install)

SUBDIRS+= vvm/bin

vvm-bin: vvm-lib
	(cd vvm/bin; make obj; make depend && make && make install)

SUBDIRS+= vvm/vvmd

vvm-vvmd: vvm-lib
	(cd vvm/vvmd; make obj; make depend && make && make install)

SUBDIRS+= vvm/vvmvd

vvm-vvmvd: vvm-lib
	(cd vvm/vvmvd; make obj; make depend && make && make install)

SUBDIRS+= rash

dmfs-bin: dmfs-lib
	(cd rash; make obj; make depend && make && make install)

SUBDIRS+= export

ms66_export: dmfs-lib
	(cd export; make obj; make depend && make && make install)

SUBDIRS+= import

ms66_import: nasutil
	(cd import; make obj; make depend && make && make install)

tps: nasutil vvm-vvmvd volman-clnt volman-admin volman-server

vold:	volman-master volman-admin

vvmd:	vvm-vvmd

clean clobber obj:
	@for i in $(SUBDIRS) ; do \
		if [ -d $$i ] ; then \
			echo ; \
			( cd $$i && echo ======= making $@ in `pwd` ); \
			( cd $$i && $(MAKE) $@ ) ; \
		else \
			echo ======= make $@: no $$i ; \
		fi \
	done