# SPDX-License-Identifier: LGPL-3.0-or-later PREFIX ?= /usr/local DATAROOTDIR ?= $(PREFIX)/share .PHONY: all all: sed -e "s:@datarootdir@:$(DATAROOTDIR):" apache2/main.conf.in >apache2/main.conf sed -e "s:@datarootdir@:$(DATAROOTDIR):" apache2/autoconfig.conf.in >apache2/autoconfig.conf sed -e "s:@datarootdir@:$(DATAROOTDIR):" apache2/autodiscover.conf.in >apache2/autodiscover.conf .PHONY: clean clean: rm -f apache2/main.conf rm -f apache2/autoconfig.conf rm -f apache2/autodiscover.conf .PHONY: install install: all install -d $(DATAROOTDIR)/emailautoconf install -d $(DATAROOTDIR)/emailautoconf/php install -t $(DATAROOTDIR)/emailautoconf/php php/thunderbird.php install -t $(DATAROOTDIR)/emailautoconf/php php/outlook.php install -d $(DATAROOTDIR)/emailautoconf/apache2 install -t $(DATAROOTDIR)/emailautoconf/apache2 apache2/main.conf install -t $(DATAROOTDIR)/emailautoconf/apache2 apache2/autoconfig.conf install -t $(DATAROOTDIR)/emailautoconf/apache2 apache2/autodiscover.conf .PHONY: uninstall uninstall: rm -rf $(DATAROOTDIR)/emailautoconf