summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-08-30 01:40:11 -0400
committerHolden Rohrer <hr@hrhr.dev>2020-08-30 01:40:11 -0400
commit8549657407d47ab2930c17ac4948fe52054c7fdd (patch)
tree26fed5abd4c89d76a7e7b85dd4037f3161a2caea /Makefile
parent1a5620224702585f2b6b48e5a769125b8ef8a2b9 (diff)
made it make a bit more sense
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