head     1.1;
branch   1.1.1;
access   ;
symbols  nastore3-beta-20000227:1.1.1.1 NAS:1.1.1;
locks    ; strict;
comment  @# @;


1.1
date     2000.02.28.02.17.53;  author wrstuden;  state Exp;
branches 1.1.1.1;
next     ;

1.1.1.1
date     2000.02.28.02.17.53;  author wrstuden;  state Exp;
branches ;
next     ;


desc
@@



1.1
log
@Initial revision
@
text
@#
# Makefile to automatically generate .tgz files for package source of
# nastore source code.
#
include	../nasutil/NASConfig.mk

PACKSRCS=	dmfs-lib:../rash/lib dmfs-bin:../rash \
		ms66-export:../export ms66-import:../import \
		nasutil:../nasutil \
		vvm-bin:../vvm/bin vvm-lib:../vvm/lib \
		vvm-vvmd:../vvm/vvmd \
		vvm-vvmvd:../vvm/vvmvd \
		volman-admin:../volman/srvr/admin volman-clnt:../volman/clnt \
		volman-lib:../volman/lib volman-srvlib:../volman/srvr/lib \
		volman-master:../volman/srvr/master \
		volman-rclib:../volman/srvr/rc/lib \
		volman-rc-ch:../volman/srvr/rc/ch \
		volman-rc-vault:../volman/srvr/rc/vault \
		volman-server:../volman/srvr/server

DEPFILE?=	.distdepends
SUFFIX?=	.tgz
PAXSUFFIX?=	.pax
THEDATE!=	${DATE} '+%C%y%m%d'

.SUFFIXES:	${SUFFIX} ${PAXSUFFIX}

.MAIN:	all

CLEANFILES+=	${DEPFILE}
-include	${DEPFILE}

depend:
	${.CURDIR}/distdepend ${SUFFIX} ${PACKSRCS} > ${DEPFILE}

.if !make(depend)
.if !defined(DLISTS) || empty(DLISTS)
all:	depend
.else
all:	${DEPFILE} ${PKGS}

${DEPFILE}:	${DLISTS}
	make depend
.endif
.endif

.for PKG in ${PKGS}
PAX_${PKG}=	${PKG:S/${SUFFIX}/${PAXSUFFIX}/}
CLEANFILES+=	${PKG}
.if exists(${PKG})
FILE_${PKG}!=	ls -l ${PKG} | tr \\040 \\012 | tail -1
CLEANFILES+=	${FILE_${PKG}}
.endif
${PKG}:
	@@if [ "${FILE_${PKG}}" != "" ]; then rm -f ${FILE_${PKG}}; fi
	pax -w -f ${PAX_${PKG}} ${PAXFLAGS_${.TARGET}} \
		${DLIST_${PKG}}
	@@gzip -c < ${PAX_${PKG}} > ${TAR_${PKG}}
	rm -f ${PKG} ${PAX_${PKG}}
	ln -sf ${TAR_${PKG}} ${PKG}

.endfor

clean clobber:
	rm -f ${CLEANFILES}
@


1.1.1.1
log
@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.
@
text
@@
