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


1.1
date	2001.06.07.00.20.54;	author jrobbins;	state Exp;
branches;
next	;


desc
@@


1.1
log
@initial
@
text
@######################################################################
# -*- Makefile -*- developed for a Unix system.
#

include Makefile.config
PATCH_PERMISSIONS=scripts/patch_permissions
ID_CMD=id


default: 
	@@echo 'Run `make install` to install $(PROJECT) user data'

install: checkdirs checkfiles
	@@mkdir -p --verbose $(INSTALL_DIR); \
	echo 'Installing initial user data into sandbox $(SANDBOX)'; \
        mkdir -p --verbose $(INSTALL_DIR)/fileserv; \
	for d in $(DATA_DIRS); do \
	  rsync -ar --cvs-exclude $${d} $(INSTALL_DIR); \
	done; \
	unset d; \
	if [ "${USER}" = 'root' ]; then \
		echo 'running patch_permissions'; \
		$(SANDBOX)/$(PATCH_PERMISSIONS); \
	fi

checkdirs:
	@@for d in $(CVS_DIRS); do \
	  [ -d $${d} ] || mkdir --parents --verbose $${d}; \
	done

checkfiles:
	@@for f in $(CVS_FILES); do \
	  [ -f $${f} ] || touch $${f}; \
	done

clean:
@
