# $Copyright:	$
# Copyright (c) 1984, 1985, 1986, 1987, 1988, 1989, 1990 
# Sequent Computer Systems, Inc.   All rights reserved.
#  
# This software is furnished under a license and may be used
# only in accordance with the terms of that license and with the
# inclusion of the above copyright notice.   This software may not
# be provided or otherwise made available to, or used by, any
# other person.  No title to or ownership of the software is
# hereby transferred.

#	Copyright (c) 1984 AT&T
#	  All Rights Reserved

#	THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T
#	The copyright notice above does not evidence any
#	actual or intended publication of such source code.

#ident	"$Header: Makefile 1.5 89/10/10 $@(#)sadmin:etc/Makefile	2.5"
#	Makefile for etc
#	Generated Thu Aug 22 10:25:13 EDT 1985 from skeleton makefile:
#  sadmin:etc/SKELMakefile  2.1  /sccs/src/cmd/sadmin/etc/s.SKELMakefile

ROOT = /

DIR = $(ROOT)/etc

CMDS = savecpio 

DIRS = save.d

PARTS = $(CMDS) bupsched save.d/except stdprofile 

ALL:		$(PARTS)

install:	$(PARTS) $(DIR) remove
	umask 022;  ls $(PARTS)  |  cpio -pdu $(DIR)
	cd $(DIR);  chmod 444 $(PARTS)
	cd $(DIR);  chmod 644 bupsched
	cd $(DIR);  chmod +x $(CMDS)
	cd $(DIR);  chown root $(PARTS)
	cd $(DIR);  chgrp sys $(PARTS)
	cd $(DIR);  chmod 775 save.d		# cpio changes it to 755
	cd $(DIR);  chgrp sys save.d		# cpio changes it to root

$(DIR):
	mkdir $(DIR);  chmod 755 $(DIR)

remove:
	cd $(DIR);  rm -f $(PARTS)
	-cd $(DIR);  if test -d $(DIRS); then if test `ls $(DIRS) | wc -l` -eq 0; then rmdir $(DIRS); fi; fi

partslist:
	@echo Makefile SKELMakefile $(PARTS)  |  tr ' ' '\012'  |  sort
	
product:
	@echo $(PARTS)  |  tr ' ' '\012'  |  sed "s;^;$(DIR)/;"

productdir:
	@echo $(DIR)
	@echo $(DIRS)  |  tr ' ' '\012'  |  sed "s;^;$(DIR)/;"

clean:

clobber:

srcaudit:
	@(	find * -print;  \
		ls -d $(DIRS) $(PARTS) SKELMakefile Makefile  \
	)  |  sort  |  uniq -u  |  sed 's/$$/	unexpected/'

newmakefile:	../tools/genmakefile SKELMakefile
	cp Makefile OMakefile
	../tools/genmakefile SKELMakefile *Makefile >Makefile
	rm -f OMakefile
