summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d296bf5..8861bf5 100644
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,8 @@
WEBROOT=/var/www/html/chsmun
SRC=src
-install:
+install: /etc/nginx/chsmun.redir
cp -R $(SRC) $(WEBROOT)
+
+/etc/nginx/chsmun.redir: LINKS
awk '{gsub(/"/,"",$$2);print "location = /chsmun/"$$1" { return 301 \""g$$2"\"; }"}' LINKS > /etc/nginx/chsmun.redir