summaryrefslogtreecommitdiff
path: root/Makefile
blob: 9cb5947a8ffe318d9306447f84f2558c4c2dcd3e (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 -R $(SRC) $(WEBROOT)

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