configurations/Makefile

19 lines
491 B
Makefile

nginx_server_blocks := $(shell ./scripts/listnginxserverblocks.sh)
pre:
@chmod -R u+x ./scripts
# Formats Nginx configuration files
nginxfmt: pre
./scripts/nginxfmt.py ${nginx_server_blocks}
# Creates Symlinks for Nginx files, /etc/nginx/sites-available
nginxsym: pre
@rm -r /etc/nginx/sites-available/*
./scripts/nginxsymlinks.py
# Create Symlinks for Dovecot files, /etc/dovecot/conf.d
dovecotsym: pre
@rm -rf /etc/dovecot/conf.d/*
./scripts/dovecotsymlinks.py