From 843819c22c10c7806174fcd7c7e28f2ee2bbb7c7 Mon Sep 17 00:00:00 2001 From: Erreur32 Date: Tue, 18 Jul 2017 23:49:02 +0200 Subject: [PATCH] modif makefile --- Makefile | 44 ++++++++++++++++++++++---------------------- bin/motds32 | 1 + 2 files changed, 23 insertions(+), 22 deletions(-) diff --git a/Makefile b/Makefile index 4a52ee4..85b7038 100644 --- a/Makefile +++ b/Makefile @@ -3,30 +3,30 @@ CONFIGS=motds32.conf usage: - @echo "This makefile allows you to:" - @echo " o install MOTDstat" - @echo " o unintall MOTDstat" - @echo - @echo Examples: - @echo " make install" - @echo " make uninstall" + @echo "This makefile allows you to:" + @echo " o install MOTDstat" + @echo " o unintall MOTDstat" + @echo + @echo Examples: + @echo " make install" + @echo " make uninstall" -install: - for prog in $(PROGRAMS); do \ - install -m 0755 bin/$$prog /usr/bin; \ - done +install: + for prog in $(PROGRAMS); do \ + install -m 0755 bin/$$prog /usr/bin; \ + done - if test ! -d /etc/motds32; then mkdir -p /etc/motds32; fi + if test ! -d /etc/motds32; then mkdir -p /etc/motds32; fi - for config in $(CONFIGS); do \ - if test ! -e /etc/motds32/$$config; then install -m 644 ./etc/motds32/$$config /etc/motds32; fi \ - done - - /usr/bin/motds32 -g + for config in $(CONFIGS); do \ + if test ! -e /etc/motds32/$$config; then install -m 644 ./etc/motds32/$$config /etc/motds32; fi \ + done + + /usr/bin/motds32 -g uninstall: - for prog in $(PROGRAMS); do \ - rm -f /usr/bin/$$prog; \ - done - rm -rf /etc/motds32/ /etc/motd.full - mv -f /etc/motd.orig /etc/motd + for prog in $(PROGRAMS); do \ + rm -f /usr/bin/$$prog; \ + done + rm -rf /etc/motds32/ /etc/motd.full + mv -f /etc/motd.orig /etc/motd diff --git a/bin/motds32 b/bin/motds32 index ac51475..9b53a96 100755 --- a/bin/motds32 +++ b/bin/motds32 @@ -22,6 +22,7 @@ # # You should have received a copy of the GNU General Public License # along with MOTDs32. If not, see . +mkdir /etc/motds32/ /etc/motds32/Stats32 > /etc/motds32/Stats32.txt # Path to the configuration file