diff options
author | Mattias Andrée <maandree@kth.se> | 2017-12-10 23:55:26 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2017-12-10 23:55:26 +0100 |
commit | f7f87b788bdfdaed3e69b60fd9ce9d2c17b06e0a (patch) | |
tree | 5ee68c7907baf8666d5d585ae491129ffcfdb6e5 /Makefile | |
parent | update news and makefile (diff) | |
download | sleeping-getty-6bffb9d5a572c06dcb49a23607851059f3d9ba6a.tar.gz sleeping-getty-6bffb9d5a572c06dcb49a23607851059f3d9ba6a.tar.bz2 sleeping-getty-6bffb9d5a572c06dcb49a23607851059f3d9ba6a.tar.xz |
Simplify and cahgne license1.1
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 30 |
1 files changed, 30 insertions, 0 deletions
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 |