From: Nishi Date: Sun, 6 Oct 2024 01:40:59 +0000 (+0000) Subject: update makefile X-Git-Url: https://git.chaotic.ninja/gitweb/nishi/?a=commitdiff_plain;h=72e4259b45aa1f2fe957d5053a74f3a9a3b5cd33;p=tewi.git update makefile git-svn-id: file:///raid/svn-personal/tewi/trunk@271 8739d7e6-ffea-ec47-b151-bdff447c6205 --- diff --git a/Makefile b/Makefile index c443b08..2303f53 100644 --- a/Makefile +++ b/Makefile @@ -39,6 +39,7 @@ all: ./Server $(MODULE) install: all ./Tool/genconf ./Tool/itworks mkdir -p $(DESTDIR)$(PREFIX)/bin $(DESTDIR)$(PREFIX)/lib/tewi $(DESTDIR)$(PREFIX)/etc $(DESTDIR)$(PREFIX)/www if [ ! -e $(DESTDIR)$(PREFIX)/etc/tewi.conf ]; then ( ./Tool/genconf $(PREFIX) lib/tewi so > $(DESTDIR)$(PREFIX)/etc/tewi.conf || ( rm $(DESTDIR)$(PREFIX)/etc/tewi.conf ; exit 1 ) ) ; fi + cp mime.types $(DESTDIR)$(PREFIX)/ if [ ! -e $(DESTDIR)$(PREFIX)/www/index.html ]; then ( ./Tool/itworks > $(DESTDIR)$(PREFIX)/www/index.html || ( rm $(DESTDIR)$(PREFIX)/www/index.html ; exit 1 ) ) ; fi if [ ! -e $(DESTDIR)$(PREFIX)/www/pbtewi.gif ]; then ( cp Binary/pbtewi.gif $(DESTDIR)$(PREFIX)/www/ || ( rm $(DESTDIR)$(PREFIX)/www/pbtewi.gif ; exit 1 ) ) ; fi -cp ./Server/tewi $(DESTDIR)$(PREFIX)/bin/