This package is no longer used.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

21 lines
635 B

PREFIX ?= /usr
$(CC) $(CFLAGS) halt.c -o halt $(LDFLAGS)
install -d $(DESTDIR)$(PREFIX)/bin
install -m755 halt $(DESTDIR)$(PREFIX)/bin/halt
ln -sf halt $(DESTDIR)$(PREFIX)/bin/shutdown
ln -sf halt $(DESTDIR)$(PREFIX)/bin/poweroff
ln -sf halt $(DESTDIR)$(PREFIX)/bin/reboot
install -d $(DESTDIR)$(PREFIX)/share/man/man8
install -m644 halt.8 $(DESTDIR)$(PREFIX)/share/man/man8/halt.8
ln -sf halt.8 $(DESTDIR)$(PREFIX)/share/man/man8/shutdown.8
ln -sf halt.8 $(DESTDIR)$(PREFIX)/share/man/man8/poweroff.8
ln -sf halt.8 $(DESTDIR)$(PREFIX)/share/man/man8/reboot.8
-rm -f halt
.PHONY: all install clean