# Makefile template
#
# Copyright (C) 1999-2002 Riccardo Facchetti <riccardo@master.oasi.gpa.it>
#
# Default variables
@VARIABLES@
# TOP source directory.
topdir = @topdir@
top_builddir = $(topdir)
# Include the default make targets: to be put before the all-targets: rule.
@TARGETS@
all-targets: Makefile
install:
@echo "Installing apcupsd boot script..."
$(INSTALL_PROGRAM) -m 744 apcupsd /etc/rc.d/apcupsd
sh ./halt-setup.sh install
sh ./rc.config.sh install
sh ../install-symlinks.sh install $(DISTNAME) $(DISTVER)
uninstall:
@echo "Removing boot script..."
@rm -f /etc/rc.d/apcupsd
sh ./halt-setup.sh uninstall
sh ./rc.config.sh uninstall
sh ../install-symlinks.sh uninstall $(DISTNAME) $(DISTVER)
clean:
distclean:
@rm -f apcupsd halt-setup.sh Makefile halt apccontrol.sh
@rm -rf CVS
syntax highlighted by Code2HTML, v. 0.9.1