# This file is part of runit-shutdown which is under the terms of GPL v2+
# Copyright (C) 2005-2006 Alejandro Mery <amery@geeks.cl>

DESTDIR=
SBINDIR=/sbin
BINDIR=/bin

all:
	@echo "nothing to do yet"
install:
	for f in halt runlevel shutdown killall5; do \
		install -m 755 src/$$f.sh $(DESTDIR)$(SBINDIR)/$$f ; \
	done
	ln -snf halt $(DESTDIR)$(SBINDIR)/reboot
	ln -snf halt $(DESTDIR)$(SBINDIR)/poweroff
	ln -snf $(SBINDIR)/killall5 $(DESTDIR)$(BINDIR)/pidof
