Update Makefile
This commit is contained in:
parent
3226436d80
commit
701ca2b5b0
44
Makefile
44
Makefile
|
@ -3,30 +3,30 @@ CONFIGS=motds32.conf
|
||||||
|
|
||||||
|
|
||||||
usage:
|
usage:
|
||||||
@echo "This makefile allows you to:"
|
@echo "This makefile allows you to:"
|
||||||
@echo " o install MOTDstat"
|
@echo " o install MOTDstat"
|
||||||
@echo " o unintall MOTDstat"
|
@echo " o unintall MOTDstat"
|
||||||
@echo
|
@echo
|
||||||
@echo Examples:
|
@echo Examples:
|
||||||
@echo " make install"
|
@echo " make install"
|
||||||
@echo " make uninstall"
|
@echo " make uninstall"
|
||||||
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
for prog in $(PROGRAMS); do \
|
for prog in $(PROGRAMS); do \
|
||||||
install -m 0755 bin/$$prog /usr/bin; \
|
install -m 0755 bin/$$prog /usr/bin; \
|
||||||
done
|
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 \
|
for config in $(CONFIGS); do \
|
||||||
if test ! -e /etc/motds32/$$config; then install -m 644 ./etc/motds32/$$config /etc/motds32; fi \
|
if test ! -e /etc/motds32/$$config; then install -m 644 ./etc/motds32/$$config /etc/motds32; fi \
|
||||||
done
|
done
|
||||||
|
|
||||||
/usr/bin/motds32 -g
|
/usr/bin/motds32 -g
|
||||||
uninstall:
|
uninstall:
|
||||||
for prog in $(PROGRAMS); do \
|
for prog in $(PROGRAMS); do \
|
||||||
rm -f /usr/bin/$$prog; \
|
rm -f /usr/bin/$$prog; \
|
||||||
done
|
done
|
||||||
rm -rf /etc/motds32/ /etc/motd.full
|
rm -rf /etc/motds32/ /etc/motd.full
|
||||||
mv -f /etc/motd.orig /etc/motd
|
mv -f /etc/motd.orig /etc/motd
|
||||||
|
|
Loading…
Reference in New Issue