# $Id: Makefile.in,v 1.13 1999/01/24 15:43:15 lha Exp $

srcdir		= @srcdir@
VPATH		= @srcdir@

SHELL		= /bin/sh
INSTALL		= @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA	= @INSTALL_DATA@
MKINSTALLDIRS 	= @top_srcdir@/mkinstalldirs

prefix 		= @prefix@
sysconfdir	= @sysconfdir@

CONF_FILES	= CellServDB ThisCell arla.conf

all:

install:	all
		$(MKINSTALLDIRS) $(DESTDIR)$(sysconfdir)
		@CONF_FILES='$(CONF_FILES)'; \
		for x in $$CONF_FILES; do \
		  echo $(INSTALL_DATA) $(srcdir)/$$x $(DESTDIR)$(sysconfdir)/$$x.default; \
		  $(INSTALL_DATA) $(srcdir)/$$x $(DESTDIR)$(sysconfdir)/$$x.default; \
		  if test -f $(DESTDIR)$(sysconfdir)/$$x; then \
		    echo "$@ will not overwrite $(DESTDIR)$(sysconfdir)/$$x"; \
		  else \
		    echo $(INSTALL_DATA) $(srcdir)/$$x $(DESTDIR)$(sysconfdir)/$$x; \
		    $(INSTALL_DATA) $(srcdir)/$$x $(DESTDIR)$(sysconfdir)/$$x; \
		  fi; \
		done
		if test -f $(DESTDIR)$(sysconfdir)/SuidCells; then \
		  echo "$@ will not overwrite $(DESTDIR)$(sysconfdir)/SuidCells"; \
	        else \
		  > $(DESTDIR)$(sysconfdir)/SuidCells; \
		fi

uninstall:
		CONF_FILES='$(CONF_FILES)'; \
		for x in $$CONF_FILES; do \
		  rm -f $(DESTDIR)$(sysconfdir)/$$x.default; \
		  rm -f $(DESTDIR)$(sysconfdir)/$$x; \
		done

clean		:

mostlyclean:	clean

distclean:	clean

realclean:	distclean

Makefile:	Makefile.in ../config.status
		(cd .. ; CONFIG_FILES=conf/Makefile CONFIG_HEADERS= $(SHELL) ./config.status)

.PHONY: all install uninstall clean mostlyclean distclean realclean
