# -- updatedd: Makefile.in --
#
# Copyright (C) 2002, 2003, 2004 Philipp Benner
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

bin		= updatedd-wrapper
conf		= updatedd-wrapper.conf

prefix		= /usr/local
exec_prefix	= ${prefix}
bindir		= ${exec_prefix}/bin
sysconfdir	= ${prefix}/etc
mandir		= ${prefix}/man

INSTALL		= /usr/bin/install -c

all:
clean:

proper:
	rm -f Makefile

install:
	$(INSTALL) -m 755 $(bin) $(bindir)

	if test ! -e $(sysconfdir)/$(conf); then		\
		$(INSTALL) -d $(sysconfdir);			\
		$(INSTALL) -m 600 $(conf) $(sysconfdir);	\
	fi

	$(INSTALL) -d $(mandir)/man1
	$(INSTALL) -d $(mandir)/man5

	$(INSTALL) -m 644 updatedd-wrapper.1 $(mandir)/man1
	$(INSTALL) -m 644 updatedd-wrapper.conf.5 $(mandir)/man5

uninstall:
	rm -f $(bindir)/$(bin)
	rm -f $(sysconfdir)/$(conf)

	rm -f $(mandir)/man1/updatedd-wrapper.1
	rm -f $(mandir)/man5/updatedd-wrapper.conf.5
