#
# ~ppr/src/installprogs/Makefile
# Copyright 1995, 1996, 1997, Trinity College Computing Center.
# Written by David Chappell.
#
# Permission to use, copy, modify, and distribute this software and its
# documentation for any purpose and without fee is hereby granted, provided
# that the above copyright notice appear in all copies and that both that
# copyright notice and this permission notice appear in supporting
# documentation.  This software is provided "as is" without express or
# implied warranty.
#
# Last modified 2 April 1997.
#

#
# This Makefile installs verious install scripts in 
# $(HOMEDIR)/install.  These include the fixup script
# and the setup_filters script.
#

include ../include/global.mk

all:

install: $(HOMEDIR)/install/remove_ppr $(HOMEDIR)/install/setup_filters \
	$(HOMEDIR)/install/fixup $(HOMEDIR)/install/etc.init.d.ppr

# The PPR install script.  Old name was "install", new name is "fixup".
$(HOMEDIR)/install/fixup: fixup.sh
	$(INSTALLSCRIPT) fixup.sh $(HOMEDIR)/install/fixup
	$(RMF) $(HOMEDIR)/install/install

# Script to remove PPR
$(HOMEDIR)/install/remove_ppr: remove_ppr.sh
	$(RMF) $(HOMEDIR)/install/remove_ppr
	$(INSTALLSCRIPT) remove_ppr.sh $(HOMEDIR)/install/remove_ppr
	chmod 500 $(HOMEDIR)/install/remove_ppr

# Program to setup up filter scripts
$(HOMEDIR)/install/setup_filters: setup_filters.sh
	$(INSTALLSCRIPT) setup_filters.sh $(HOMEDIR)/install/setup_filters

# System V init start/stop script for PPR
$(HOMEDIR)/install/etc.init.d.ppr: etc.init.d.ppr.sh
	$(INSTALLSCRIPT) etc.init.d.ppr.sh $(HOMEDIR)/install/etc.init.d.ppr

# Clean up.  This includes removing the
# install archive.
clean:
	$(RMF) *.$(OBJ) *.bak *~ *.bck

# end of file
