From f7f87b788bdfdaed3e69b60fd9ce9d2c17b06e0a Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 10 Dec 2017 23:55:26 +0100 Subject: Simplify and cahgne license MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e13f531 --- /dev/null +++ b/Makefile @@ -0,0 +1,30 @@ +.POSIX: + +CONFIGFILE = config.mk +include $(CONFIGFILE) + +all: sleeping-getty + +sleeping-getty: sleeping-getty.o + $(CC) -o $@ sleeping-getty.o $(LDFLAGS) + +install: sleeping-getty + mkdir -p -- "$(DESTDIR)$(PREFIX)/sbin" + mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man8" + mkdir -p -- "$(DESTDIR)$(PREFIX)/share/licenses/sleeping-getty" + cp -- sleeping-getty "$(DESTDIR)$(PREFIX)/sbin/" + cp -- sleeping-getty.8 "$(DESTDIR)$(MANPREFIX)/man8/" + cp -- LICENSE "$(DESTDIR)$(PREFIX)/share/licenses/sleeping-getty/" + +uninstall: + -rm -f -- "$(DESTDIR)$(PREFIX)/sbin/sleeping-getty" + -rm -f -- "$(DESTDIR)$(MANPREFIX)/man8/sleeping-getty.8" + -rm -rf -- "$(DESTDIR)$(PREFIX)/share/licenses/sleeping-getty" + +clean: + -rm -f -- sleeping-getty *.o + +.SUFFIXES: +.SUFFIXES: .o .c + +.PHONY: all install uninstall clean -- cgit v1.2.3-70-g09d2