summaryrefslogtreecommitdiff
path: root/Makefile
blob: 6b8d8d32715c9b9ce78b475500679f4f750fd6ce (plain)
1
2
3
4
5
6
7
8
9
10
.POSIX:

WEBROOT=/var/www/html/chsmun
SRC=src

install: /etc/nginx/chsmun.redir
	cp -TR $(SRC) $(WEBROOT)

/etc/nginx/chsmun.redir: LINKS
	awk '{gsub(/["\\\$$]/,"\\\\&",$$2);print "location = /chsmun/"$$1" { return 302 \""g$$2"\"; }"}' LINKS > /etc/nginx/chsmun.redir