From edf137a7d0a15f5b63f50392aad9927f043bf53c Mon Sep 17 00:00:00 2001 From: Adam Spragg Date: Mon, 4 Oct 2021 09:40:04 +0100 Subject: First working version of emailautoconf --- makefile | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 makefile (limited to 'makefile') diff --git a/makefile b/makefile new file mode 100644 index 0000000..21c4024 --- /dev/null +++ b/makefile @@ -0,0 +1,40 @@ + +# 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 + -- cgit v1.2.1