diff options
author | Adam Spragg <adam@spra.gg> | 2021-10-04 09:40:04 +0100 |
---|---|---|
committer | Adam Spragg <adam@spra.gg> | 2021-10-04 09:40:04 +0100 |
commit | edf137a7d0a15f5b63f50392aad9927f043bf53c (patch) | |
tree | 0f7ac8467eabae62daf5406f557a2f1c088f7e06 /makefile |
First working version of emailautoconf
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 40 |
1 files changed, 40 insertions, 0 deletions
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 + |