From 84e2a09844ca710d48f303329d6bb85ad897cb98 Mon Sep 17 00:00:00 2001 From: redblade7 Date: Fri, 12 May 2017 22:34:00 -0400 Subject: [PATCH] updated makefile to use coreutils install --- Makefile | 5 +++-- README.md | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index bcb8f2b..5442b30 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,13 @@ STRFILE = /usr/bin/strfile +INSTALL = /usr/bin/install PREFIX = /usr DESTDIR = $(PREFIX)/share/games/fortunes all: smtoomuch.dat install: all - cp -f smtoomuch $(DESTDIR) - cp -f smtoomuch.dat $(DESTDIR) + $(INSTALL) -o root -g root -m 644 smtoomuch $(DESTDIR) + $(INSTALL) -o root -g root -m 644 smtoomuch.dat $(DESTDIR) smtoomuch.dat: smtoomuch $(STRFILE) smtoomuch diff --git a/README.md b/README.md index d36e513..54068af 100644 --- a/README.md +++ b/README.md @@ -70,4 +70,5 @@ THANKS: * igemnace on Freenode #vim for helping me quickly split up the book into fortunes CHANGES: -* v5.0 (2017-05-11) - Initial release, based on version 5 of the book +* v5.1 (2017-05-12) - Updated Makefile to use coreutils install. +* v5.0 (2017-05-11) - Initial release, based on version 5 of the book.