.POSIX:
WEBROOT=/var/www/html/chsmun
SRC=src
install: /etc/nginx/chsmun.redir
cp -R $(SRC) $(WEBROOT)
/etc/nginx/chsmun.redir: LINKS
awk '{gsub(/["\\\$$]/,"\\\\&",$$2);print "location = /chsmun/"$$1" { return 302 \""g$$2"\"; }"}' LINKS > /etc/nginx/chsmun.redir