hbbs

bbs.hlirc.net
Log | Files | Refs | README | LICENSE

commit 04db0307a1ddffae5844ec989f8e10456a46c5a1
parent 6c8fe07a12dd47d641feae6be91e6a2b9250d418
Author: hhvn <hayden@haydenvh.com>
Date:   Mon,  1 Feb 2021 10:22:13 +0000

makefile: update

Diffstat:
Mmakefile | 12++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/makefile b/makefile @@ -1,15 +1,23 @@ PREFIX = /usr/local DATADIR = /var/bbs -install: +default: etc/lesskey + lesskey -o etc/less etc/lesskey + +install: clean mkdir -p $(PREFIX)/share/hbbs - cp `ls` $(PREFIX/)/share/hbbs + cp -r `ls` $(PREFIX)/share/hbbs sed 's~PREFIX~$(PREFIX)~' < etc/xinetd > /etc/xinetd.d/hbbs chmod 755 $(PREFIX)/share/hbbs/hbbs.sh chmod 755 $(PREFIX)/share/hbbs/bin/wrapper.sh mkdir -p $(DATADIR)/ chmod 777 $(DATDIR)/ +clean: + @echo Cleaning... + [ ! -f $(PREFIX)/share/hbbs ] || rm -rf $(PREFIX)/share/hbbs + @echo + uninstall: rm -rf $(DATADIR) rm -rf $(PREFIX)/share/hbbs