This repository has been archived on 2020-01-20. You can view files and clone it, but cannot push or open issues or pull requests.
evoauth/Makefile

65 lines
1.8 KiB
Makefile
Raw Normal View History

2005-09-14 10:57:00 +02:00
# $Id$
2005-09-12 21:51:19 +02:00
#
# Makefile pour Evoauth
VERSION= 0.8
2005-09-12 21:51:19 +02:00
SRC= ./
WWWDIR= /var/www/htdocs
BINDIR= /usr/local/share
DOCDIR= /usr/local/share/doc
LOGDIR= /var/log
2005-09-12 21:51:19 +02:00
NAME= evoauth
2005-09-14 09:03:36 +02:00
TAR?= tar
INSTALL?= install
2005-09-12 21:51:19 +02:00
install:all
all: web tools help msg
web:
$(INSTALL) -d -m 0755 $(WWWDIR)/$(NAME)/{,includes,images}
$(INSTALL) -m 0644 htdocs/*.php $(WWWDIR)/$(NAME)
2005-09-13 17:13:31 +02:00
$(INSTALL) -m 0644 htdocs/style.css $(WWWDIR)/$(NAME)
2005-09-12 21:51:19 +02:00
$(INSTALL) -m 0644 htdocs/includes/*.php $(WWWDIR)/$(NAME)/includes
2005-09-13 17:10:57 +02:00
$(INSTALL) -m 0666 htdocs/accueil.txt $(WWWDIR)/$(NAME)
2005-09-12 21:51:19 +02:00
$(INSTALL) -m 0644 htdocs/images/*.* $(WWWDIR)/$(NAME)/images
$(INSTALL) -m 0644 htdocs/favicon.ico $(WWWDIR)/$(NAME)
tools: module
$(INSTALL) -d -m 0755 $(BINDIR)/$(NAME)
$(INSTALL) -d -m 0774 /etc/evoauth
2005-09-24 11:49:16 +02:00
$(INSTALL) -m 0770 admin/Evoauth.pl $(BINDIR)/$(NAME)/evoauth
2005-09-15 13:22:44 +02:00
$(INSTALL) -m 0600 install/evoauth.conf /etc/evoauth
2005-09-20 09:11:12 +02:00
$(INSTALL) -m 0600 install/evoauth.rules /etc/evoauth
2005-09-12 21:51:19 +02:00
module:
cd admin/ && \
perl Makefile.PL && \
make && \
make install && \
make clean
help:
$(INSTALL) -d -m 0755 $(DOCDIR)/$(NAME)
$(INSTALL) -m 0644 AUTHORS LICENSE README TODO $(DOCDIR)/$(NAME)
$(INSTALL) -d -m 0755 $(DOCDIR)/$(NAME)/install
2005-09-13 14:40:52 +02:00
$(INSTALL) -m 0644 install/*.* $(DOCDIR)/$(NAME)/install
2005-09-14 10:42:38 +02:00
$(INSTALL) -m 0644 install/INSTALL $(DOCDIR)/$(NAME)/install
$(INSTALL) -m 0664 install/evoauth.log $(LOGDIR)
2005-09-12 21:51:19 +02:00
msg:
2005-09-14 10:42:38 +02:00
@echo ""
2005-09-15 12:49:58 +02:00
@echo "Félicitations. Evoauth est à présent installé."
2005-09-14 10:42:38 +02:00
@echo "----------------------------------------------"
@echo ""
2005-09-15 13:32:20 +02:00
@echo "Consultez $(DOCDIR)/$(NAME)/install/INSTALL"
@echo "pour plus d'informations sur l'installation."
2005-09-14 10:42:38 +02:00
@echo ""
2005-09-12 21:51:19 +02:00
deinstall:
rm -rf $(BINDIR)/$(NAME)
rm -rf $(DOCDIR)/$(NAME)
rm -rf $(WWWDIR)/$(NAME)
rm -rf /usr/libdata/perl5/Evoauth/
cat /usr/local/libdata/perl5/site_perl/i386-openbsd/auto/Evoauth/.packlist | xargs sudo rm -rf