diff options
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 + |